diff options
author | WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> | 2020-12-19 17:46:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-19 17:46:09 +0000 |
commit | 0be3f449a778f9f3ce0fd3ef16d4751be01cbbfd (patch) | |
tree | 72148472a230198300883694431da3d2a605b461 /src/frontend | |
parent | df190b04000a8a3c5052de3fd695f6c26892f353 (diff) |
fix for the last commit
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/qt_sdl/ArchiveUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/ArchiveUtil.cpp b/src/frontend/qt_sdl/ArchiveUtil.cpp index 9885191..e007095 100644 --- a/src/frontend/qt_sdl/ArchiveUtil.cpp +++ b/src/frontend/qt_sdl/ArchiveUtil.cpp @@ -87,7 +87,7 @@ QVector<QString> ExtractFileFromArchive(const char* path, const char* wantedFile return QVector<QString> {"Err", archive_error_string(a)}; } - QString fileToWrite = QFileInfo(path).absolutePath() + "/" + QFileInfo(dirToWrite).baseName() + "/" + archive_entry_pathname(entry); + QString fileToWrite = QFileInfo(path).absolutePath() + "/" + QFileInfo(path).baseName() + "/" + archive_entry_pathname(entry); std::ofstream(fileToWrite.toUtf8().constData(), std::ofstream::binary).write((char*)archiveBuffer.get(), bytesToWrite); |