diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-09-11 11:45:32 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-09-11 11:45:32 -0500 |
| commit | 4d9c1db885bd3ab230440b25e70dcd8049cf4650 (patch) | |
| tree | 06ed754185e3b1dbbfe09563ca4a0499cc5aace7 /src/instancemanager.h | |
| parent | 99fdbb2539227cec4fab534efc7420cfc5ca1a92 (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.h | 3 |
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: |
