diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index dade3c212..a10eb74da 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp @@ -80,7 +80,7 @@ void GameList::DonePopulating() void GameList::PopulateAsync(const QString& dir_path, bool deep_scan) { if (!FileUtil::Exists(dir_path.toStdString()) || !FileUtil::IsDirectory(dir_path.toStdString())) { - LOG_ERROR(Frontend, "Could not find game list folder at %s", dir_path.toLatin1().data()); + LOG_ERROR(Frontend, "Could not find game list folder at %s", dir_path.toLocal8bit().data()); return; } diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index bf010a2ba..c5bc2711a 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -355,7 +355,7 @@ void GMainWindow::UpdateRecentFiles() { } void GMainWindow::OnGameListLoadFile(QString game_path) { - BootGame(game_path.toLatin1().data()); + BootGame(game_path.toLocal8bit().data()); } void GMainWindow::OnMenuLoadFile() { @@ -367,7 +367,7 @@ void GMainWindow::OnMenuLoadFile() { settings.setValue("romsPath", QFileInfo(filename).path()); StoreRecentFile(filename); - BootGame(filename.toLatin1().data()); + BootGame(filename.toLocal8bit().data()); } } @@ -379,7 +379,7 @@ void GMainWindow::OnMenuLoadSymbolMap() { if (!filename.isEmpty()) { settings.setValue("symbolsPath", QFileInfo(filename).path()); - LoadSymbolMap(filename.toLatin1().data()); + LoadSymbolMap(filename.toLocal8bit().data()); } } @@ -400,7 +400,7 @@ void GMainWindow::OnMenuRecentFile() { QString filename = action->data().toString(); QFileInfo file_info(filename); if (file_info.exists()) { - BootGame(filename.toLatin1().data()); + BootGame(filename.toLocale8bit().data()); StoreRecentFile(filename); // Put the filename on top of the list } else { // Display an error message and remove the file from the list.