aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-04-29 18:05:48 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-04-29 19:55:24 -0700
commit788fa40c2ae0e9786c070f4593a4e7ff6efc77d3 (patch)
tree3eb86f6640005a4e4a54d7623518f0f9a8a181bf /launcher/minecraft
parent0ce30495796627e7591587ca1e977be98178f225 (diff)
downloadPrismLauncher-788fa40c2ae0e9786c070f4593a4e7ff6efc77d3.tar.gz
PrismLauncher-788fa40c2ae0e9786c070f4593a4e7ff6efc77d3.tar.bz2
PrismLauncher-788fa40c2ae0e9786c070f4593a4e7ff6efc77d3.zip
refactor: Move ini to use QSettings && drop get/setList functions
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft')
-rw-r--r--launcher/minecraft/mod/tasks/LocalModParseTask.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/minecraft/mod/tasks/LocalModParseTask.cpp b/launcher/minecraft/mod/tasks/LocalModParseTask.cpp
index da27a505..5342d693 100644
--- a/launcher/minecraft/mod/tasks/LocalModParseTask.cpp
+++ b/launcher/minecraft/mod/tasks/LocalModParseTask.cpp
@@ -242,7 +242,7 @@ ModDetails ReadQuiltModInfo(QByteArray contents)
return details;
}
-ModDetails ReadForgeInfo(QByteArray contents)
+ModDetails ReadForgeInfo(QString fileName)
{
ModDetails details;
// Read the data
@@ -250,7 +250,7 @@ ModDetails ReadForgeInfo(QByteArray contents)
details.mod_id = "Forge";
details.homeurl = "http://www.minecraftforge.net/forum/";
INIFile ini;
- if (!ini.loadFile(contents))
+ if (!ini.loadFile(fileName))
return details;
QString major = ini.get("forge.major.number", "0").toString();
@@ -422,7 +422,7 @@ bool processZIP(Mod& mod, ProcessingLevel level)
return false;
}
- details = ReadForgeInfo(file.readAll());
+ details = ReadForgeInfo(file.getFileName());
file.close();
zip.close();