summaryrefslogtreecommitdiffstats
path: root/backend/LegacyInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-05 03:29:50 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-05 03:29:50 +0200
commit183a7351456940d01f14a49112ddeb68ffc4693a (patch)
tree579aeb0b8670e634de4f083e54b3c826bf548ec9 /backend/LegacyInstance.h
parent005a010ee6a67191ec24583780310fcf217ff30c (diff)
downloadMultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar
MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar.gz
MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar.lz
MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar.xz
MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.zip
Runnable 1.6 instances!
Diffstat (limited to 'backend/LegacyInstance.h')
-rw-r--r--backend/LegacyInstance.h33
1 files changed, 7 insertions, 26 deletions
diff --git a/backend/LegacyInstance.h b/backend/LegacyInstance.h
index dcc97448..e4ab6f29 100644
--- a/backend/LegacyInstance.h
+++ b/backend/LegacyInstance.h
@@ -56,7 +56,6 @@ public:
qint64 lastCurrentVersionUpdate() const;
void setLastCurrentVersionUpdate(qint64 val);
-
/*!
* Whether or not the instance's minecraft.jar needs to be rebuilt.
* If this is true, when the instance launches, its jar mods will be
@@ -65,39 +64,21 @@ public:
bool shouldRebuild() const;
void setShouldRebuild(bool val);
+ virtual QString currentVersionId() const;
+ virtual void setCurrentVersionId(QString val);
- /*!
- * The instance's current version.
- * This value represents the instance's current version. If this value is
- * different from the intendedVersion, the instance should be updated.
- * \warning Don't change this value unless you know what you're doing.
- */
- QString currentVersion() const;
- void setCurrentVersion(QString val);
-
//! The version of LWJGL that this instance uses.
QString lwjglVersion() const;
+ /// st the version of LWJGL libs this instance will use
void setLWJGLVersion(QString val);
- /*!
- * The version that the user has set for this instance to use.
- * If this is not the same as currentVersion, the instance's game updater
- * will be run on launch.
- */
- virtual QString intendedVersionId();
+ virtual QString intendedVersionId() const;
virtual bool setIntendedVersionId ( QString version );
- /*!
- * Whether or not Minecraft should be downloaded when the instance is launched.
- * This returns true if shouldForceUpdate game is true or if the intended and
- * current versions don't match.
- */
- bool shouldUpdate() const;
- void setShouldUpdate(bool val);
-
- /// return a valid GameUpdateTask if an update is needed, return NULL otherwise
+ virtual bool shouldUpdate() const;
+ virtual void setShouldUpdate(bool val);
virtual OneSixUpdate* doUpdate();
- /// prepare the instance for launch and return a constructed MinecraftProcess instance
virtual MinecraftProcess* prepareForLaunch( QString user, QString session );
+ virtual void cleanupAfterRun();
}; \ No newline at end of file