aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UDLLManager.pas
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UDLLManager.pas17
1 files changed, 9 insertions, 8 deletions
diff --git a/Game/Code/Classes/UDLLManager.pas b/Game/Code/Classes/UDLLManager.pas
index ff6c16a4..358be9af 100644
--- a/Game/Code/Classes/UDLLManager.pas
+++ b/Game/Code/Classes/UDLLManager.pas
@@ -1,12 +1,9 @@
unit UDLLManager;
-{$IFDEF FPC}
- {$MODE DELPHI}
-{$ENDIF}
-
-
interface
+{$I switches.inc}
+
uses ModiSDK,
UFiles;
@@ -44,15 +41,19 @@ var
const
DLLPath = 'Plugins';
- {$IFDEF win32}
+ {$IFDEF MSWINDOWS}
DLLExt = '.dll';
- {$ELSE}
+ {$ENDIF}
+ {$IFDEF LINUX}
DLLExt = '.so';
{$ENDIF}
+ {$IFDEF DARWIN}
+ DLLExt = '.dylib';
+ {$ENDIF}
implementation
-uses {$IFDEF win32}
+uses {$IFDEF MSWINDOWS}
windows,
{$ELSE}
dynlibs,