diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-08-28 16:52:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-28 16:52:53 +0200 |
commit | f371ec210c091b9ebc91930be74752383cb941c6 (patch) | |
tree | f3b13e1015285e76145552d21503ff641bf4ce11 /launcher/MMCZip.cpp | |
parent | afcd669d2f6934c2b6076939d7665f791d495994 (diff) | |
parent | 0b81b283bfdd16b409127f22eac7b51ce0142929 (diff) | |
download | PrismLauncher-f371ec210c091b9ebc91930be74752383cb941c6.tar.gz PrismLauncher-f371ec210c091b9ebc91930be74752383cb941c6.tar.bz2 PrismLauncher-f371ec210c091b9ebc91930be74752383cb941c6.zip |
Merge pull request #1052 from flowln/resource_model
Diffstat (limited to 'launcher/MMCZip.cpp')
-rw-r--r-- | launcher/MMCZip.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/MMCZip.cpp b/launcher/MMCZip.cpp index 04ca5094..9f4e968f 100644 --- a/launcher/MMCZip.cpp +++ b/launcher/MMCZip.cpp @@ -148,7 +148,7 @@ bool MMCZip::createModdedJar(QString sourceJarPath, QString targetJarPath, const // do not merge disabled mods. if (!mod->enabled()) continue; - if (mod->type() == Mod::MOD_ZIPFILE) + if (mod->type() == ResourceType::ZIPFILE) { if (!mergeZipFiles(&zipOut, mod->fileinfo(), addedFiles)) { @@ -158,7 +158,7 @@ bool MMCZip::createModdedJar(QString sourceJarPath, QString targetJarPath, const return false; } } - else if (mod->type() == Mod::MOD_SINGLEFILE) + else if (mod->type() == ResourceType::SINGLEFILE) { // FIXME: buggy - does not work with addedFiles auto filename = mod->fileinfo(); @@ -171,7 +171,7 @@ bool MMCZip::createModdedJar(QString sourceJarPath, QString targetJarPath, const } addedFiles.insert(filename.fileName()); } - else if (mod->type() == Mod::MOD_FOLDER) + else if (mod->type() == ResourceType::FOLDER) { // untested, but seems to be unused / not possible to reach // FIXME: buggy - does not work with addedFiles |