diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-07-08 13:38:00 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-07-08 13:38:00 -0700 |
commit | e70407289266a205147bfb1293763e64dacb0f3e (patch) | |
tree | 88ee2558f93452caa0db727436c07cf450c197dd /launcher/modplatform/flame/PackManifest.cpp | |
parent | 67d473aab773e7f94c394ebdde05581dc8f805de (diff) | |
download | PrismLauncher-e70407289266a205147bfb1293763e64dacb0f3e.tar.gz PrismLauncher-e70407289266a205147bfb1293763e64dacb0f3e.tar.bz2 PrismLauncher-e70407289266a205147bfb1293763e64dacb0f3e.zip |
fix(flame install): don't assume .zip is a resource pack. default to mod
let identifier move it if needed
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/modplatform/flame/PackManifest.cpp')
-rw-r--r-- | launcher/modplatform/flame/PackManifest.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/launcher/modplatform/flame/PackManifest.cpp b/launcher/modplatform/flame/PackManifest.cpp index 22008297..ee4d0766 100644 --- a/launcher/modplatform/flame/PackManifest.cpp +++ b/launcher/modplatform/flame/PackManifest.cpp @@ -76,13 +76,8 @@ bool Flame::File::parseFromObject(const QJsonObject& obj, bool throw_on_blocked // It is also optional type = File::Type::SingleFile; - if (fileName.endsWith(".zip")) { - // this is probably a resource pack - targetFolder = "resourcepacks"; - } else { - // this is probably a mod, dunno what else could modpacks download - targetFolder = "mods"; - } + targetFolder = "mods"; + // get the hash hash = QString(); auto hashes = Json::ensureArray(obj, "hashes"); |