diff options
author | Andrew <forkk@forkk.net> | 2013-05-08 12:56:43 -0500 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-05-08 12:56:43 -0500 |
commit | 5f781b3053c5ba8a25d354903acf2c31dc9a56c5 (patch) | |
tree | 94361d20568e55d63db7b18f3c7dded7d1e88e06 /libmultimc/src/minecraftversion.cpp | |
parent | 2e62f6e8d8aded1036f96835ebebd4d656c0fcc2 (diff) | |
download | MultiMC-5f781b3053c5ba8a25d354903acf2c31dc9a56c5.tar MultiMC-5f781b3053c5ba8a25d354903acf2c31dc9a56c5.tar.gz MultiMC-5f781b3053c5ba8a25d354903acf2c31dc9a56c5.tar.lz MultiMC-5f781b3053c5ba8a25d354903acf2c31dc9a56c5.tar.xz MultiMC-5f781b3053c5ba8a25d354903acf2c31dc9a56c5.zip |
Implement basic game updater.
Resolves MMC-4: https://jira.forkk.net/browse/MMC-4
Diffstat (limited to 'libmultimc/src/minecraftversion.cpp')
-rw-r--r-- | libmultimc/src/minecraftversion.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libmultimc/src/minecraftversion.cpp b/libmultimc/src/minecraftversion.cpp index 2e8b4a9b..7dee802f 100644 --- a/libmultimc/src/minecraftversion.cpp +++ b/libmultimc/src/minecraftversion.cpp @@ -24,6 +24,7 @@ MinecraftVersion::MinecraftVersion(QString descriptor, InstVersion(descriptor, name, timestamp, parent), m_dlUrl(dlUrl), m_etag(etag) { m_linkedVersion = NULL; + m_isNewLauncherVersion = false; } MinecraftVersion::MinecraftVersion(const MinecraftVersion *linkedVersion) : @@ -98,6 +99,16 @@ qint64 MinecraftVersion::timestamp() const return m_timestamp; } +bool MinecraftVersion::isForNewLauncher() const +{ + return m_isNewLauncherVersion; +} + +void MinecraftVersion::setIsForNewLauncher(bool val) +{ + m_isNewLauncherVersion = val; +} + MinecraftVersion::VersionType MinecraftVersion::versionType() const { return m_type; @@ -137,6 +148,7 @@ InstVersion *MinecraftVersion::copyVersion(InstVersionList *newParent) const MinecraftVersion *version = new MinecraftVersion( descriptor(), name(), timestamp(), downloadURL(), etag(), newParent); version->setVersionType(versionType()); + version->setIsForNewLauncher(isForNewLauncher()); return version; } } |