From 0b2f25a6e3fda014b0f5a4282283fb90b0958d42 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Wed, 6 Aug 2014 12:27:17 +0200 Subject: Restored -datadir and -langdir arguments, added -savedir Also, fixed some crashes when unable to open file --- src/app/system.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/app/system.cpp') diff --git a/src/app/system.cpp b/src/app/system.cpp index 66d08e5..0435b39 100644 --- a/src/app/system.cpp +++ b/src/app/system.cpp @@ -192,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::GetSaveDir() { return std::string("save"); -- cgit v1.2.3-1-g7c22