summaryrefslogtreecommitdiffstats
path: root/src/app/system_macosx.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-08-06 12:27:17 +0200
committerkrzys-h <krzys_h@interia.pl>2014-08-06 12:27:17 +0200
commit0b2f25a6e3fda014b0f5a4282283fb90b0958d42 (patch)
tree110222c4e1dd4885e24d9c76257032106da68af3 /src/app/system_macosx.cpp
parent9a3cd67c3bb2f7d0d4b83f6a5ac8bbcfedf4207b (diff)
downloadcolobot-0b2f25a6e3fda014b0f5a4282283fb90b0958d42.tar.gz
colobot-0b2f25a6e3fda014b0f5a4282283fb90b0958d42.tar.bz2
colobot-0b2f25a6e3fda014b0f5a4282283fb90b0958d42.zip
Restored -datadir and -langdir arguments, added -savedir
Also, fixed some crashes when unable to open file
Diffstat (limited to 'src/app/system_macosx.cpp')
-rw-r--r--src/app/system_macosx.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/app/system_macosx.cpp b/src/app/system_macosx.cpp
index 473a10c..06c67d3 100644
--- a/src/app/system_macosx.cpp
+++ b/src/app/system_macosx.cpp
@@ -87,10 +87,19 @@ void CSystemUtilsMacOSX::Init()
m_dataPath += "/Contents/Resources";
}
+std::string CSystemUtilsMacOSX::GetDataPath()
+{
+ return m_dataPath;
+}
+
+std::string CSystemUtilsMacOSX::GetLangPath()
+{
+ return m_dataPath + "/i18n";
+}
+
std::string CSystemUtilsMacOSX::GetSaveDir()
{
std::string savegameDir = m_ASPath;
- boost::filesystem::create_directories(savegameDir.c_str());
GetLogger()->Trace("Saved game files are going to %s\n", savegameDir.c_str());
return savegameDir;