aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UDLLManager.pas
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-20 06:51:40 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-20 06:51:40 +0000
commit0a0728b1bc280ed0e2e932b4d8f3b3b151aa62a8 (patch)
tree24c06838ad4be318dd6d1bc1e6351481558a16fd /Game/Code/Classes/UDLLManager.pas
parent7636d51e65782bfcb902b7bb554eeba668516a6c (diff)
downloadusdx-0a0728b1bc280ed0e2e932b4d8f3b3b151aa62a8.tar.gz
usdx-0a0728b1bc280ed0e2e932b4d8f3b3b151aa62a8.tar.xz
usdx-0a0728b1bc280ed0e2e932b4d8f3b3b151aa62a8.zip
fixed a bunch of path delimiter issues on linux build :)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@411 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UDLLManager.pas10
1 files changed, 5 insertions, 5 deletions
diff --git a/Game/Code/Classes/UDLLManager.pas b/Game/Code/Classes/UDLLManager.pas
index d25efb35..ff6c16a4 100644
--- a/Game/Code/Classes/UDLLManager.pas
+++ b/Game/Code/Classes/UDLLManager.pas
@@ -42,11 +42,11 @@ var
DLLMan: TDLLMan;
const
+ DLLPath = 'Plugins';
+
{$IFDEF win32}
- DLLPath = 'Plugins\';
DLLExt = '.dll';
{$ELSE}
- DLLPath = 'Plugins/';
DLLExt = '.so';
{$ENDIF}
@@ -73,7 +73,7 @@ var
SR: TSearchRec;
begin
- if FindFirst(DLLPath + '*' + DLLExt, faAnyFile , SR) = 0 then
+ if FindFirst(DLLPath +PathDelim+ '*' + DLLExt, faAnyFile , SR) = 0 then
begin
repeat
SetLength(Plugins, Length(Plugins)+1);
@@ -143,7 +143,7 @@ begin
exit; }
//Load Libary
- hLibg := LoadLibrary(PChar(DLLPath + Filename));
+ hLibg := LoadLibrary(PChar(DLLPath +PathDelim+ Filename));
//If Loaded
if (hLibg <> 0) then
begin
@@ -170,7 +170,7 @@ function TDLLMan.LoadPlugin(No: Cardinal): boolean;
begin
Result := False;
//Load Libary
- hLib := LoadLibrary(PChar(DLLPath + PluginPaths[No]));
+ hLib := LoadLibrary(PChar(DLLPath +PathDelim+ PluginPaths[No]));
//If Loaded
if (hLib <> 0) then
begin