diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-07-27 11:41:45 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-07-27 11:41:45 +0200 |
commit | a7a84d4dbb58565f108cb0886da6cb786e34d10d (patch) | |
tree | 1337bc6c5f428fe1bc8c1c7bac209cb10fa7a0ab /libmultimc/include/instance.h | |
parent | 97cf08f964ceebf4cb98b46f473bf952007a8a21 (diff) | |
download | MultiMC-a7a84d4dbb58565f108cb0886da6cb786e34d10d.tar MultiMC-a7a84d4dbb58565f108cb0886da6cb786e34d10d.tar.gz MultiMC-a7a84d4dbb58565f108cb0886da6cb786e34d10d.tar.lz MultiMC-a7a84d4dbb58565f108cb0886da6cb786e34d10d.tar.xz MultiMC-a7a84d4dbb58565f108cb0886da6cb786e34d10d.zip |
Parsing the version files, part III
Diffstat (limited to 'libmultimc/include/instance.h')
-rw-r--r-- | libmultimc/include/instance.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libmultimc/include/instance.h b/libmultimc/include/instance.h index 526025be..f6857cd8 100644 --- a/libmultimc/include/instance.h +++ b/libmultimc/include/instance.h @@ -116,8 +116,11 @@ class LIBMULTIMC_EXPORT Instance : public QObject */ Q_PROPERTY(qint64 lastCurrentVersionUpdate READ lastCurrentVersionUpdate WRITE setLastCurrentVersionUpdate) - - + /*! + * Is the instance a new launcher instance? Get/Set + */ + Q_PROPERTY(bool isForNewLauncher READ isForNewLauncher WRITE setIsForNewLauncher) + // Dirs //! Path to the instance's .minecraft folder. Q_PROPERTY(QString minecraftDir READ minecraftDir STORED false) @@ -250,6 +253,15 @@ public: virtual qint64 lastCurrentVersionUpdate() const { return settings().get("lastVersionUpdate").value<qint64>(); } virtual void setLastCurrentVersionUpdate(qint64 val) { settings().set("lastVersionUpdate", val); } + virtual bool isForNewLauncher() + { + return settings().get("IsForNewLauncher").value<bool>(); + } + + virtual void setIsForNewLauncher(bool value = true) + { + settings().set("IsForNewLauncher", value); + } ////// Directories ////// QString minecraftDir() const; |