summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-12-07 17:41:45 +0100
committerTannin <devnull@localhost>2013-12-07 17:41:45 +0100
commitff78c6a014f8342024c3b271dbfca5ea0b4573f7 (patch)
tree2e9a47562f9d4d2e5e3a09287fad85b867647cf9 /src
parent340edcfbcab81ad7b2fac03cb724fb4d947d0d1d (diff)
- bugfix: extracting bsas did not work with non-ascii characters in the mod name
- another attempt to switch branches...
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3eefffa9..b435cda0 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3168,7 +3168,6 @@ void MainWindow::testExtractBSA(int modIndex)
foreach (QFileInfo archiveInfo, archives) {
BSA::Archive archive;
-
BSA::EErrorCode result = archive.read(archiveInfo.absoluteFilePath().toLocal8Bit().constData());
if ((result != BSA::ERROR_NONE) && (result != BSA::ERROR_INVALIDHASHES)) {
reportError(tr("failed to read %1: %2").arg(archiveInfo.fileName()).arg(result));
@@ -3180,7 +3179,7 @@ void MainWindow::testExtractBSA(int modIndex)
progress.setValue(0);
progress.show();
- archive.extractAll(modInfo->absolutePath().toUtf8().constData(),
+ archive.extractAll(modInfo->absolutePath().toLocal8Bit().constData(),
boost::bind(&MainWindow::extractProgress, this, boost::ref(progress), _1, _2));
if (result == BSA::ERROR_INVALIDHASHES) {
@@ -4745,7 +4744,7 @@ void MainWindow::extractBSATriggered()
progress.setMaximum(100);
progress.setValue(0);
progress.show();
- archive.extractAll(QDir::toNativeSeparators(targetFolder).toUtf8().constData(),
+ archive.extractAll(QDir::toNativeSeparators(targetFolder).toLocal8Bit().constData(),
boost::bind(&MainWindow::extractProgress, this, boost::ref(progress), _1, _2));
if (result == BSA::ERROR_INVALIDHASHES) {
reportError(tr("This archive contains invalid hashes. Some files may be broken."));