summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/curse/PackManifest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/minecraft/curse/PackManifest.cpp')
-rw-r--r--api/logic/minecraft/curse/PackManifest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/logic/minecraft/curse/PackManifest.cpp b/api/logic/minecraft/curse/PackManifest.cpp
index fd40a37c..2fde8a01 100644
--- a/api/logic/minecraft/curse/PackManifest.cpp
+++ b/api/logic/minecraft/curse/PackManifest.cpp
@@ -5,7 +5,8 @@ static void loadFileV1(Curse::File & f, QJsonObject & file)
{
f.projectId = Json::requireInteger(file, "projectID");
f.fileId = Json::requireInteger(file, "fileID");
- f.required = Json::requireBoolean(file, "required");
+ // FIXME: what does this mean?
+ f.required = Json::ensureBoolean(file, QString("required"), true);
}
static void loadModloaderV1(Curse::Modloader & m, QJsonObject & modLoader)
@@ -17,6 +18,8 @@ static void loadModloaderV1(Curse::Modloader & m, QJsonObject & modLoader)
static void loadMinecraftV1(Curse::Minecraft & m, QJsonObject & minecraft)
{
m.version = Json::requireString(minecraft, "version");
+ // FIXME: default unknown, assuming empty. Meaning also unknown.
+ m.libraries = Json::ensureString(minecraft, QString("libraries"), QString());
auto arr = Json::ensureArray(minecraft, "modLoaders", QJsonArray());
for (const auto & item : arr)
{