summaryrefslogtreecommitdiff
path: root/src/instancemanager.h
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2019-09-11 11:45:32 -0500
committerLostDragonist <lost.dragonist@gmail.com>2019-09-11 11:45:32 -0500
commit4d9c1db885bd3ab230440b25e70dcd8049cf4650 (patch)
tree06ed754185e3b1dbbfe09563ca4a0499cc5aace7 /src/instancemanager.h
parent99fdbb2539227cec4fab534efc7420cfc5ca1a92 (diff)
Add portable lock feature
If the file "portable.txt" is present in the application directory, MO will force itself to be launched as a portable instance. The change game button and menu item are hidden to prevent the user from changing out of the portable instance.
Diffstat (limited to 'src/instancemanager.h')
-rw-r--r--src/instancemanager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/instancemanager.h b/src/instancemanager.h
index 4efa6f03..0e31fb08 100644
--- a/src/instancemanager.h
+++ b/src/instancemanager.h
@@ -38,6 +38,8 @@ public:
QString currentInstance() const;
+ bool allowedToChangeInstance() const;
+
private:
InstanceManager();
@@ -58,6 +60,7 @@ private:
void createDataPath(const QString &dataPath) const;
bool portableInstall() const;
+ bool portableInstallIsLocked() const;
private: