aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modpacksch/FTBPackManifest.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-07-25 17:51:30 -0300
committerSefa Eyeoglu <contact@scrumplex.net>2022-07-26 20:33:33 +0200
commitfbf1901d86e67425cd8404c77508395349d80743 (patch)
treece871f0d8bfd6fb81b45cfdd372883cc1c6f8318 /launcher/modplatform/modpacksch/FTBPackManifest.cpp
parent0382f33c46b26b6286d45622c97732c4329ddf7d (diff)
downloadPrismLauncher-fbf1901d86e67425cd8404c77508395349d80743.tar.gz
PrismLauncher-fbf1901d86e67425cd8404c77508395349d80743.tar.bz2
PrismLauncher-fbf1901d86e67425cd8404c77508395349d80743.zip
refactor: shuffle some things around to improve readability
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/modplatform/modpacksch/FTBPackManifest.cpp')
-rw-r--r--launcher/modplatform/modpacksch/FTBPackManifest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/modplatform/modpacksch/FTBPackManifest.cpp b/launcher/modplatform/modpacksch/FTBPackManifest.cpp
index c927a623..421527ae 100644
--- a/launcher/modplatform/modpacksch/FTBPackManifest.cpp
+++ b/launcher/modplatform/modpacksch/FTBPackManifest.cpp
@@ -154,8 +154,8 @@ static void loadVersionFile(ModpacksCH::VersionFile & a, QJsonObject & obj)
a.optional = Json::requireBoolean(obj, "optional");
a.updated = Json::requireInteger(obj, "updated");
auto curseforgeObj = Json::ensureObject(obj, "curseforge"); // optional
- a.curseforge.project = Json::ensureInteger(curseforgeObj, "project");
- a.curseforge.file = Json::ensureInteger(curseforgeObj, "file");
+ a.curseforge.project_id = Json::ensureInteger(curseforgeObj, "project");
+ a.curseforge.file_id = Json::ensureInteger(curseforgeObj, "file");
}
void ModpacksCH::loadVersion(ModpacksCH::Version & m, QJsonObject & obj)