summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/MinecraftVersion.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-03-13 20:57:01 +0100
committerPetr Mrázek <peterix@gmail.com>2016-03-26 17:05:27 +0100
commitfb9dfcb951d9cf9c19fc868703cb66e15aa9a1e6 (patch)
treeffff93a5ac0de669293d695c446ae2051c74cb4f /logic/minecraft/MinecraftVersion.cpp
parent010e07eb4552d805ad3dc08347531d9bad6b3c24 (diff)
downloadMultiMC-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/MinecraftVersion.cpp')
-rw-r--r--logic/minecraft/MinecraftVersion.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/logic/minecraft/MinecraftVersion.cpp b/logic/minecraft/MinecraftVersion.cpp
index 6b9420b7..a2897950 100644
--- a/logic/minecraft/MinecraftVersion.cpp
+++ b/logic/minecraft/MinecraftVersion.cpp
@@ -58,11 +58,11 @@ bool MinecraftVersion::isMinecraftVersion()
return true;
}
-void MinecraftVersion::applyFileTo(MinecraftProfile *version)
+void MinecraftVersion::applyFileTo(MinecraftProfile *profile)
{
if(m_versionSource == Local && getVersionFile())
{
- getVersionFile()->applyTo(version);
+ getVersionFile()->applyTo(profile);
}
else
{
@@ -149,12 +149,12 @@ ProblemSeverity MinecraftVersion::getProblemSeverity()
return ProfilePatch::getProblemSeverity();
}
-void MinecraftVersion::applyTo(MinecraftProfile *version)
+void MinecraftVersion::applyTo(MinecraftProfile *profile)
{
// do we have this one cached?
if (m_versionSource == Local)
{
- applyFileTo(version);
+ applyFileTo(profile);
return;
}
// if not builtin, do not proceed any further.
@@ -163,12 +163,12 @@ void MinecraftVersion::applyTo(MinecraftProfile *version)
throw VersionIncomplete(QObject::tr(
"Minecraft version %1 could not be applied: version files are missing.").arg(m_descriptor));
}
- version->applyMinecraftVersion(m_descriptor);
- version->applyMainClass(m_mainClass);
- version->applyAppletClass(m_appletClass);
- version->applyMinecraftArguments(" ${auth_player_name} ${auth_session}"); // all builtin versions are legacy
- version->applyMinecraftVersionType(m_type);
- version->applyTraits(m_traits);
+ profile->applyMinecraftVersion(m_descriptor);
+ profile->applyMainClass(m_mainClass);
+ profile->applyAppletClass(m_appletClass);
+ profile->applyMinecraftArguments(" ${auth_player_name} ${auth_session}"); // all builtin versions are legacy
+ profile->applyMinecraftVersionType(m_type);
+ profile->applyTraits(m_traits);
}
int MinecraftVersion::getOrder()