diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-04 08:17:25 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-04 08:17:25 +0200 |
commit | d80382180ef14d814eb9f6d7f2bf5db362f25cc2 (patch) | |
tree | 824dae31e08a961be3b1f0bf0129419ccbbef9b2 /api/logic/minecraft | |
parent | b8adbb9b73751b022b42180dcc213dc99be9765b (diff) | |
download | MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.tar MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.tar.gz MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.tar.lz MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.tar.xz MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.zip |
NOISSUE refactor pack import (extraction and paths)
It now:
* Doesn't extract until it knows the content format is good.
* Extracts in a predictable location, not requiring to use a second path for the actual pack root.
Diffstat (limited to 'api/logic/minecraft')
-rw-r--r-- | api/logic/minecraft/World.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/minecraft/World.cpp b/api/logic/minecraft/World.cpp index 81f52ff5..8d9d4d83 100644 --- a/api/logic/minecraft/World.cpp +++ b/api/logic/minecraft/World.cpp @@ -146,7 +146,7 @@ void World::readFromZip(const QFileInfo &file) { return; } - auto location = MMCZip::findFileInZip(&zip, "level.dat"); + auto location = MMCZip::findFolderOfFileInZip(&zip, "level.dat"); is_valid = !location.isEmpty(); if (!is_valid) { |