diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-10-10 01:47:48 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-10-10 01:47:48 +0200 |
commit | 73f8bc5c92cb4a9b7ce507309001c6b206b5c8eb (patch) | |
tree | da0b7c09fcd105a4144387e4261ad3aabc910862 /logic/OneSixInstance.h | |
parent | eaf0cbeafc5ff70bd2bb0d66b5f5980a71f824c5 (diff) | |
download | MultiMC-73f8bc5c92cb4a9b7ce507309001c6b206b5c8eb.tar MultiMC-73f8bc5c92cb4a9b7ce507309001c6b206b5c8eb.tar.gz MultiMC-73f8bc5c92cb4a9b7ce507309001c6b206b5c8eb.tar.lz MultiMC-73f8bc5c92cb4a9b7ce507309001c6b206b5c8eb.tar.xz MultiMC-73f8bc5c92cb4a9b7ce507309001c6b206b5c8eb.zip |
Version changing removes any existing version json.
Diffstat (limited to 'logic/OneSixInstance.h')
-rw-r--r-- | logic/OneSixInstance.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/logic/OneSixInstance.h b/logic/OneSixInstance.h index 8f5c22e6..d2276afc 100644 --- a/logic/OneSixInstance.h +++ b/logic/OneSixInstance.h @@ -10,33 +10,33 @@ class OneSixInstance : public BaseInstance { Q_OBJECT public: - explicit OneSixInstance(const QString &rootDir, SettingsObject * settings, QObject *parent = 0); - - + explicit OneSixInstance(const QString &rootDir, SettingsObject *settings, + QObject *parent = 0); + ////// Mod Lists ////// std::shared_ptr<ModList> loaderModList(); std::shared_ptr<ModList> resourcePackList(); - + ////// Directories ////// QString resourcePacksDir() const; QString loaderModsDir() const; virtual QString instanceConfigFolder() const; - - virtual BaseUpdate* doUpdate(); - virtual MinecraftProcess* prepareForLaunch ( LoginResponse response ); + + virtual BaseUpdate *doUpdate(); + virtual MinecraftProcess *prepareForLaunch(LoginResponse response); virtual void cleanupAfterRun(); - + virtual QString intendedVersionId() const; - virtual bool setIntendedVersionId ( QString version ); - + virtual bool setIntendedVersionId(QString version); + virtual QString currentVersionId() const; // virtual void setCurrentVersionId ( QString val ) {}; - + virtual bool shouldUpdate() const; virtual void setShouldUpdate(bool val); - - virtual QDialog * createModEditDialog ( QWidget* parent ); - + + virtual QDialog *createModEditDialog(QWidget *parent); + /// reload the full version json file. return true on success! bool reloadFullVersion(); /// get the current full version info @@ -46,13 +46,14 @@ public: /// customize the current base version bool customizeVersion(); /// is the current version original, or custom? - bool versionIsCustom(); - + virtual bool versionIsCustom() override; + virtual QString defaultBaseJar() const; virtual QString defaultCustomBaseJar() const; - - virtual bool menuActionEnabled ( QString action_name ) const; + + virtual bool menuActionEnabled(QString action_name) const; virtual QString getStatusbarDescription(); + private: - QStringList processMinecraftArgs( LoginResponse response ); + QStringList processMinecraftArgs(LoginResponse response); };
\ No newline at end of file |