aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplugin/src/base/UPlatform.pas
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-12-01 18:00:32 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-12-01 18:00:32 +0000
commitdbdb5b7e4fc5acd72c9283990a412fffb7bb33c3 (patch)
tree85cb55bd0482bfe09d096a08f7b7f8b50b08da05 /mediaplugin/src/base/UPlatform.pas
parent04197f2b45f4d1ebe87c97c9a072c1c3f30e8596 (diff)
downloadusdx-dbdb5b7e4fc5acd72c9283990a412fffb7bb33c3.tar.gz
usdx-dbdb5b7e4fc5acd72c9283990a412fffb7bb33c3.tar.xz
usdx-dbdb5b7e4fc5acd72c9283990a412fffb7bb33c3.zip
- implement Mac specific abstract UPlatform.GetMusicPath() for win and linux
- add UPlatform.AddLibrarySearchPath() to be able to add new dll search paths - use AddLibrarySearchPath() for loading plugin dependencies (e.g. ffmpeg libs) from game/mediaplugins/deps git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2758 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--mediaplugin/src/base/UPlatform.pas19
1 files changed, 18 insertions, 1 deletions
diff --git a/mediaplugin/src/base/UPlatform.pas b/mediaplugin/src/base/UPlatform.pas
index 6d884979..4239e21a 100644
--- a/mediaplugin/src/base/UPlatform.pas
+++ b/mediaplugin/src/base/UPlatform.pas
@@ -51,9 +51,11 @@ type
procedure Halt; virtual;
function GetLogPath: IPath; virtual; abstract;
- function GetMusicPath: IPath; virtual; abstract;
+ function GetMusicPath: IPath; virtual;
function GetGameSharedPath: IPath; virtual; abstract;
function GetGameUserPath: IPath; virtual; abstract;
+
+ procedure AddLibrarySearchPath(const DLLPath: IPath); virtual;
end;
function Platform(): TPlatform;
@@ -113,6 +115,21 @@ begin
Result := ExecDir.GetAbsolutePath();
end;
+{**
+ * Dummy implementation (Mac specific)
+ *}
+function TPlatform.GetMusicPath: IPath;
+begin
+ Result := PATH_NONE;
+end;
+
+{**
+ * Dummy implementation (Windows specific)
+ *}
+procedure TPlatform.AddLibrarySearchPath(const DLLPath: IPath);
+begin
+end;
+
(**
* Default TerminateIfAlreadyRunning() implementation
*)