NOISSUE fix build issue with QJsonValueRef on macOS 11
This will remove support for macOS 10.7 and 10.8, but their numbers in analytics are 0
This commit is contained in:
parent
43cf647642
commit
094ed0bc81
@ -21,7 +21,7 @@ static void loadMinecraftV1(Flame::Minecraft & m, QJsonObject & minecraft)
|
|||||||
// intended use is likely hardcoded in the 'Flame' client, the manifest says nothing
|
// intended use is likely hardcoded in the 'Flame' client, the manifest says nothing
|
||||||
m.libraries = Json::ensureString(minecraft, QString("libraries"), QString());
|
m.libraries = Json::ensureString(minecraft, QString("libraries"), QString());
|
||||||
auto arr = Json::ensureArray(minecraft, "modLoaders", QJsonArray());
|
auto arr = Json::ensureArray(minecraft, "modLoaders", QJsonArray());
|
||||||
for (const auto & item : arr)
|
for (QJsonValueRef item : arr)
|
||||||
{
|
{
|
||||||
auto obj = Json::requireObject(item);
|
auto obj = Json::requireObject(item);
|
||||||
Flame::Modloader loader;
|
Flame::Modloader loader;
|
||||||
@ -38,7 +38,7 @@ static void loadManifestV1(Flame::Manifest & m, QJsonObject & manifest)
|
|||||||
m.version = Json::ensureString(manifest, QString("version"), QString());
|
m.version = Json::ensureString(manifest, QString("version"), QString());
|
||||||
m.author = Json::ensureString(manifest, QString("author"), "Anonymous Coward");
|
m.author = Json::ensureString(manifest, QString("author"), "Anonymous Coward");
|
||||||
auto arr = Json::ensureArray(manifest, "files", QJsonArray());
|
auto arr = Json::ensureArray(manifest, "files", QJsonArray());
|
||||||
for (const auto & item : arr)
|
for (QJsonValueRef item : arr)
|
||||||
{
|
{
|
||||||
auto obj = Json::requireObject(item);
|
auto obj = Json::requireObject(item);
|
||||||
Flame::File file;
|
Flame::File file;
|
||||||
|
Loading…
Reference in New Issue
Block a user