Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/previewbsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ QWidget* PreviewBsa::genBsaPreview(const QString& fileName, const QSize&)
QLabel* infoLabel = new QLabel();
BSA::Archive arch; // bs_archive_auto is easier to use, but is less performant when
// working with memory
BSA::EErrorCode res = arch.read(fileName.toLocal8Bit().constData(), true);
BSA::EErrorCode res = arch.read(fileName.toStdWString(), true);
if ((res != BSA::ERROR_NONE) && (res != BSA::ERROR_INVALIDHASHES)) {
log::error("invalid bsa '{}', error {}", fileName, res);
infoLabel->setText("Unable to parse archive. Unrecognized format.");
Expand Down
Loading