diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-03-13 20:57:01 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-03-26 17:05:27 +0100 |
commit | fb9dfcb951d9cf9c19fc868703cb66e15aa9a1e6 (patch) | |
tree | ffff93a5ac0de669293d695c446ae2051c74cb4f /logic/minecraft/onesix/OneSixUpdate.cpp | |
parent | 010e07eb4552d805ad3dc08347531d9bad6b3c24 (diff) | |
download | MultiMC-fb9dfcb951d9cf9c19fc868703cb66e15aa9a1e6.tar MultiMC-fb9dfcb951d9cf9c19fc868703cb66e15aa9a1e6.tar.gz MultiMC-fb9dfcb951d9cf9c19fc868703cb66e15aa9a1e6.tar.lz MultiMC-fb9dfcb951d9cf9c19fc868703cb66e15aa9a1e6.tar.xz MultiMC-fb9dfcb951d9cf9c19fc868703cb66e15aa9a1e6.zip |
NOISSUE stop referring to the minecraft profile as 'version'
Diffstat (limited to 'logic/minecraft/onesix/OneSixUpdate.cpp')
-rw-r--r-- | logic/minecraft/onesix/OneSixUpdate.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/logic/minecraft/onesix/OneSixUpdate.cpp b/logic/minecraft/onesix/OneSixUpdate.cpp index 78938a4f..814cde18 100644 --- a/logic/minecraft/onesix/OneSixUpdate.cpp +++ b/logic/minecraft/onesix/OneSixUpdate.cpp @@ -87,8 +87,8 @@ void OneSixUpdate::assetIndexStart() { setStatus(tr("Updating assets index...")); OneSixInstance *inst = (OneSixInstance *)m_inst; - std::shared_ptr<MinecraftProfile> version = inst->getMinecraftProfile(); - QString assetName = version->getMinecraftAssets(); + auto profile = inst->getMinecraftProfile(); + QString assetName = profile->getMinecraftAssets(); QUrl indexUrl = "http://" + URLConstants::AWS_DOWNLOAD_INDEXES + assetName + ".json"; QString localPath = assetName + ".json"; auto job = new NetJob(tr("Asset index for %1").arg(inst->name())); @@ -113,8 +113,8 @@ void OneSixUpdate::assetIndexFinished() qDebug() << m_inst->name() << ": Finished asset index download"; OneSixInstance *inst = (OneSixInstance *)m_inst; - std::shared_ptr<MinecraftProfile> version = inst->getMinecraftProfile(); - QString assetName = version->getMinecraftAssets(); + auto profile = inst->getMinecraftProfile(); + QString assetName = profile->getMinecraftAssets(); QString asset_fname = "assets/indexes/" + assetName + ".json"; if (!AssetsUtils::loadAssetsIndexJson(asset_fname, &index)) @@ -190,10 +190,10 @@ void OneSixUpdate::jarlibStart() } // Build a list of URLs that will need to be downloaded. - std::shared_ptr<MinecraftProfile> version = inst->getMinecraftProfile(); + std::shared_ptr<MinecraftProfile> profile = inst->getMinecraftProfile(); // minecraft.jar for this version { - QString version_id = version->getMinecraftVersion(); + QString version_id = profile->getMinecraftVersion(); QString localPath = version_id + "/" + version_id + ".jar"; QString urlstr = "http://" + URLConstants::AWS_DOWNLOAD_VERSIONS + localPath; @@ -207,8 +207,8 @@ void OneSixUpdate::jarlibStart() jarlibDownloadJob.reset(job); } - auto libs = version->getNativeLibraries(); - libs.append(version->getLibraries()); + auto libs = profile->getNativeLibraries(); + libs.append(profile->getLibraries()); auto metacache = ENV.metacache(); QList<ForgeXzDownloadPtr> ForgeLibs; @@ -289,9 +289,9 @@ void OneSixUpdate::jarlibStart() void OneSixUpdate::jarlibFinished() { OneSixInstance *inst = (OneSixInstance *)m_inst; - std::shared_ptr<MinecraftProfile> version = inst->getMinecraftProfile(); + std::shared_ptr<MinecraftProfile> profile = inst->getMinecraftProfile(); - if (version->hasTrait("legacyFML")) + if (profile->hasTrait("legacyFML")) { fmllibsStart(); } @@ -313,7 +313,7 @@ void OneSixUpdate::fmllibsStart() { // Get the mod list OneSixInstance *inst = (OneSixInstance *)m_inst; - std::shared_ptr<MinecraftProfile> fullversion = inst->getMinecraftProfile(); + std::shared_ptr<MinecraftProfile> profile = inst->getMinecraftProfile(); bool forge_present = false; QString version = inst->intendedVersionId(); @@ -328,7 +328,7 @@ void OneSixUpdate::fmllibsStart() // determine if we need some libs for FML or forge setStatus(tr("Checking for FML libraries...")); - forge_present = (fullversion->versionPatch("net.minecraftforge") != nullptr); + forge_present = (profile->versionPatch("net.minecraftforge") != nullptr); // we don't... if (!forge_present) { |