diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-12-17 02:09:58 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-12-20 23:04:11 +0100 |
commit | d6c71488b34a2854461feee3296c11568542ecbe (patch) | |
tree | 9486ced2bfb437178d1abe827dc29f00edd7783d /logic/net/ForgeXzDownload.cpp | |
parent | 20e86801b3cc889a07cd8eef744b06b77a2239cc (diff) | |
download | MultiMC-d6c71488b34a2854461feee3296c11568542ecbe.tar MultiMC-d6c71488b34a2854461feee3296c11568542ecbe.tar.gz MultiMC-d6c71488b34a2854461feee3296c11568542ecbe.tar.lz MultiMC-d6c71488b34a2854461feee3296c11568542ecbe.tar.xz MultiMC-d6c71488b34a2854461feee3296c11568542ecbe.zip |
Some test madness
Diffstat (limited to 'logic/net/ForgeXzDownload.cpp')
-rw-r--r-- | logic/net/ForgeXzDownload.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/logic/net/ForgeXzDownload.cpp b/logic/net/ForgeXzDownload.cpp index 1771d304..83cbabd0 100644 --- a/logic/net/ForgeXzDownload.cpp +++ b/logic/net/ForgeXzDownload.cpp @@ -20,6 +20,7 @@ #include <QCryptographicHash> #include <QFileInfo> #include <QDateTime> +#include <QDir> #include "logger/QsLog.h" ForgeXzDownload::ForgeXzDownload(QString relative_path, MetaEntryPtr entry) : NetAction() @@ -312,9 +313,11 @@ void ForgeXzDownload::decompressAndInstall() // revert pack200 pack200_file.close(); QString pack_name = pack200_file.fileName(); + QString source_native = QDir::toNativeSeparators(pack_name); + QString target_native = QDir::toNativeSeparators(m_target_path); try { - unpack_200(pack_name.toStdString(), m_target_path.toStdString()); + unpack_200(source_native.toStdString(), target_native.toStdString()); } catch (std::runtime_error &err) { |