Permalink
Browse files

Qt: Fix replaceGame on UTF-8 files

  • Loading branch information...
endrift committed Jul 14, 2018
1 parent f8fb86e commit 559ac947d0aeb971227257442e04b03ffb4733d2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/platform/qt/CoreController.cpp
@@ -593,7 +593,7 @@ void CoreController::replaceGame(const QString& path) {
QString fname = info.canonicalFilePath();
Interrupter interrupter(this);
mDirectorySetDetachBase(&m_threadContext.core->dirs);
- mCoreLoadFile(m_threadContext.core, fname.toLocal8Bit().constData());
+ mCoreLoadFile(m_threadContext.core, fname.toUtf8().constData());
}
void CoreController::yankPak() {

0 comments on commit 559ac94

Please sign in to comment.