diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-03-01 23:06:47 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-03-01 23:06:47 +0100 |
commit | 7c24bcc83476dcbdd7f7acbe14ecef4398962689 (patch) | |
tree | 4ab7e7020927d05274f079c3045bd572c218fa21 /logic/OneSixUpdate.cpp | |
parent | 7dfd6aa051c582e26125e17e1d6eed5e675e1027 (diff) | |
download | MultiMC-7c24bcc83476dcbdd7f7acbe14ecef4398962689.tar MultiMC-7c24bcc83476dcbdd7f7acbe14ecef4398962689.tar.gz MultiMC-7c24bcc83476dcbdd7f7acbe14ecef4398962689.tar.lz MultiMC-7c24bcc83476dcbdd7f7acbe14ecef4398962689.tar.xz MultiMC-7c24bcc83476dcbdd7f7acbe14ecef4398962689.zip |
Reorganize the version-related code.
Diffstat (limited to 'logic/OneSixUpdate.cpp')
-rw-r--r-- | logic/OneSixUpdate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/logic/OneSixUpdate.cpp b/logic/OneSixUpdate.cpp index f87c65e7..750aeabb 100644 --- a/logic/OneSixUpdate.cpp +++ b/logic/OneSixUpdate.cpp @@ -25,7 +25,7 @@ #include "BaseInstance.h" #include "lists/MinecraftVersionList.h" -#include "OneSixVersion.h" +#include "VersionFinal.h" #include "OneSixLibrary.h" #include "OneSixInstance.h" #include "net/ForgeMirrors.h" @@ -150,7 +150,7 @@ void OneSixUpdate::assetIndexStart() { setStatus(tr("Updating assets index...")); OneSixInstance *inst = (OneSixInstance *)m_inst; - std::shared_ptr<OneSixVersion> version = inst->getFullVersion(); + std::shared_ptr<VersionFinal> version = inst->getFullVersion(); QString assetName = version->assets; QUrl indexUrl = "http://" + URLConstants::AWS_DOWNLOAD_INDEXES + assetName + ".json"; QString localPath = assetName + ".json"; @@ -174,7 +174,7 @@ void OneSixUpdate::assetIndexFinished() AssetsIndex index; OneSixInstance *inst = (OneSixInstance *)m_inst; - std::shared_ptr<OneSixVersion> version = inst->getFullVersion(); + std::shared_ptr<VersionFinal> version = inst->getFullVersion(); QString assetName = version->assets; QString asset_fname = "assets/indexes/" + assetName + ".json"; @@ -243,7 +243,7 @@ void OneSixUpdate::jarlibStart() } // Build a list of URLs that will need to be downloaded. - std::shared_ptr<OneSixVersion> version = inst->getFullVersion(); + std::shared_ptr<VersionFinal> version = inst->getFullVersion(); // minecraft.jar for this version { QString version_id = version->id; |