summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/system.cpp10
-rw-r--r--src/app/system.h6
2 files changed, 16 insertions, 0 deletions
diff --git a/src/app/system.cpp b/src/app/system.cpp
index 6927af8..743ed96 100644
--- a/src/app/system.cpp
+++ b/src/app/system.cpp
@@ -187,3 +187,13 @@ float CSystemUtils::TimeStampDiff(SystemTimeStamp *before, SystemTimeStamp *afte
return result;
}
+
+std::string CSystemUtils::profileFileLocation()
+{
+ return std::string("colobot.ini");
+}
+
+std::string CSystemUtils::savegameDirectoryLocation()
+{
+ return std::string("savegame");
+}
diff --git a/src/app/system.h b/src/app/system.h
index 278a4bf..6ae05d6 100644
--- a/src/app/system.h
+++ b/src/app/system.h
@@ -129,6 +129,12 @@ public:
//! Returns the exact (in nanosecond units) difference between two timestamps
/** The difference is \a after - \a before. */
virtual long long TimeStampExactDiff(SystemTimeStamp *before, SystemTimeStamp *after) = 0;
+
+ //! Returns the profile (colobot.ini) file location
+ virtual std::string profileFileLocation();
+
+ //! Returns the savegame directory location
+ virtual std::string savegameDirectoryLocation();
};
//! Global function to get CSystemUtils instance