all repos — mgba @ 559ac947d0aeb971227257442e04b03ffb4733d2

mGBA Game Boy Advance Emulator

Qt: Fix replaceGame on UTF-8 files
Vicki Pfau vi@endrift.com
Sat, 14 Jul 2018 14:19:16 -0700
commit

559ac947d0aeb971227257442e04b03ffb4733d2

parent

f8fb86ef7986d6935234589972a792349c3c1d71

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/CoreController.cppsrc/platform/qt/CoreController.cpp

@@ -593,7 +593,7 @@ }

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() {