summaryrefslogtreecommitdiffstats
path: root/MultiMC.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-01-03 02:29:05 +0100
committerPetr Mrázek <peterix@gmail.com>2014-01-03 02:29:05 +0100
commitf399207ae09e2b9a34166be6dbb2a1d22dbddc99 (patch)
tree3b794ab76fdf45669660796ff044e5d08354738b /MultiMC.h
parent1455f051e4762cf7409081f7db5cefb22d3c72bd (diff)
downloadMultiMC-f399207ae09e2b9a34166be6dbb2a1d22dbddc99.tar
MultiMC-f399207ae09e2b9a34166be6dbb2a1d22dbddc99.tar.gz
MultiMC-f399207ae09e2b9a34166be6dbb2a1d22dbddc99.tar.lz
MultiMC-f399207ae09e2b9a34166be6dbb2a1d22dbddc99.tar.xz
MultiMC-f399207ae09e2b9a34166be6dbb2a1d22dbddc99.zip
Log version, work paths
Diffstat (limited to 'MultiMC.h')
-rw-r--r--MultiMC.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/MultiMC.h b/MultiMC.h
index 9ad276ff..91731afa 100644
--- a/MultiMC.h
+++ b/MultiMC.h
@@ -125,6 +125,29 @@ public:
*/
bool openJsonEditor(const QString &filename);
+ /// this is the root of the 'installation'. Used for automatic updates
+ const QString &root()
+ {
+ return rootPath;
+ }
+ /// this is the where the binary files reside
+ const QString &bin()
+ {
+ return binPath;
+ }
+ /// this is the work/data path. All user data is here.
+ const QString &data()
+ {
+ return dataPath;
+ }
+ /**
+ * this is the original work path before it was changed by the adjustment mechanism
+ */
+ const QString &origcwd()
+ {
+ return origcwdPath;
+ }
+
private:
void initLogger();
@@ -157,6 +180,11 @@ private:
QString m_updateOnExitPath;
+ QString rootPath;
+ QString binPath;
+ QString dataPath;
+ QString origcwdPath;
+
Status m_status = MultiMC::Failed;
MultiMCVersion m_version;
};