Skip to content

Commit 8a4f4a5

Browse files
committed
Use wide strings with BSATK input paths
1 parent 77a4b8a commit 8a4f4a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/previewbsa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ QWidget* PreviewBsa::genBsaPreview(const QString& fileName, const QSize&)
134134
QLabel* infoLabel = new QLabel();
135135
BSA::Archive arch; // bs_archive_auto is easier to use, but is less performant when
136136
// working with memory
137-
BSA::EErrorCode res = arch.read(fileName.toLocal8Bit().constData(), true);
137+
BSA::EErrorCode res = arch.read(fileName.toStdWString().c_str(), true);
138138
if ((res != BSA::ERROR_NONE) && (res != BSA::ERROR_INVALIDHASHES)) {
139139
log::error("invalid bsa '{}', error {}", fileName, res);
140140
infoLabel->setText("Unable to parse archive. Unrecognized format.");

0 commit comments

Comments
 (0)