diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-05-02 12:11:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 12:11:41 +0200 |
commit | 64ba5e4ed1456bed159cfe7b41ed9175b8baf5c4 (patch) | |
tree | 9e0de7effc3ca0b49ce2c5ffb2c1462c626929c3 /launcher/minecraft/mod/tasks/LocalModParseTask.cpp | |
parent | ae75585b52078ca6d89b4014668c08d9aea4a17b (diff) | |
parent | d80dee2a54a172fa19c0bc21486ee43ef2e3514d (diff) | |
download | PrismLauncher-64ba5e4ed1456bed159cfe7b41ed9175b8baf5c4.tar.gz PrismLauncher-64ba5e4ed1456bed159cfe7b41ed9175b8baf5c4.tar.bz2 PrismLauncher-64ba5e4ed1456bed159cfe7b41ed9175b8baf5c4.zip |
Merge pull request #833 from Ryex/advanced_copy_instance
Diffstat (limited to 'launcher/minecraft/mod/tasks/LocalModParseTask.cpp')
-rw-r--r-- | launcher/minecraft/mod/tasks/LocalModParseTask.cpp | 6 |
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(); |