diff options
author | flow <flowlnlnln@gmail.com> | 2023-03-05 08:24:56 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2023-03-05 08:24:56 -0300 |
commit | 06de728aa7fc5db842f03a53fb8a0f8d2b131924 (patch) | |
tree | 43c72c850b922144bf5fe0d25511ba8c8e78b64b | |
parent | 9265c319a96b3dd5681767c196a397fbbae9164a (diff) | |
download | PrismLauncher-06de728aa7fc5db842f03a53fb8a0f8d2b131924.tar.gz PrismLauncher-06de728aa7fc5db842f03a53fb8a0f8d2b131924.tar.bz2 PrismLauncher-06de728aa7fc5db842f03a53fb8a0f8d2b131924.zip |
fix: use `toLocalFile()` instead of `path()`
QUrl::path() adds a '/' at the beginning of the path on Windows, causing
the world to explode every once in a while.
Signed-off-by: flow <flowlnlnln@gmail.com>
-rw-r--r-- | launcher/MMCZip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/MMCZip.cpp b/launcher/MMCZip.cpp index c6d56543..1eda43fe 100644 --- a/launcher/MMCZip.cpp +++ b/launcher/MMCZip.cpp @@ -320,7 +320,7 @@ std::optional<QStringList> MMCZip::extractSubDir(QuaZip *zip, const QString & su if (relative_file_name.isEmpty()) { target_file_path = target + '/'; } else { - target_file_path = FS::PathCombine(target_top_dir.path(), sub_path, relative_file_name); + target_file_path = FS::PathCombine(target_top_dir.toLocalFile(), sub_path, relative_file_name); if (relative_file_name.endsWith('/') && !target_file_path.endsWith('/')) target_file_path += '/'; } |