diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-11-26 00:42:46 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-11-26 00:42:46 +0100 |
commit | d6eb095f2760eab42e852aceae61289ad7ba36ee (patch) | |
tree | 3bf29be57a9c47b0ce7427f3dbb9d58cdd258ee5 /src/app/system.cpp | |
parent | 881802b050dc9957ce681eafd6e255ddadf3a517 (diff) | |
parent | 8c25650ad5e888019f350f099d6755921780c6f1 (diff) | |
download | colobot-d6eb095f2760eab42e852aceae61289ad7ba36ee.tar.gz colobot-d6eb095f2760eab42e852aceae61289ad7ba36ee.tar.bz2 colobot-d6eb095f2760eab42e852aceae61289ad7ba36ee.zip |
Colobot Gold 0.1.2-alpha
Diffstat (limited to 'src/app/system.cpp')
-rw-r--r-- | src/app/system.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/app/system.cpp b/src/app/system.cpp index 2eb68ba..eaa9e4c 100644 --- a/src/app/system.cpp +++ b/src/app/system.cpp @@ -25,6 +25,8 @@ #include "app/system_windows.h" #elif defined(PLATFORM_LINUX) #include "app/system_linux.h" +#elif defined(PLATFORM_MACOSX) + #include "app/system_macosx.h" #else #include "app/system_other.h" #endif @@ -48,6 +50,8 @@ CSystemUtils* CSystemUtils::Create() m_instance = new CSystemUtilsWindows(); #elif defined(PLATFORM_LINUX) m_instance = new CSystemUtilsLinux(); +#elif defined(PLATFORM_MACOSX) + m_instance = new CSystemUtilsMacOSX(); #else m_instance = new CSystemUtilsOther(); #endif @@ -188,6 +192,16 @@ float CSystemUtils::TimeStampDiff(SystemTimeStamp *before, SystemTimeStamp *afte return result; } +std::string CSystemUtils::GetDataPath() +{ + return COLOBOT_DEFAULT_DATADIR; +} + +std::string CSystemUtils::GetLangPath() +{ + return COLOBOT_I18N_DIR; +} + std::string CSystemUtils::GetProfileFileLocation() { return std::string("colobot.ini"); |