summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-03-28 04:03:07 +0200
committerbunnei <bunneidev@gmail.com>2016-03-28 04:03:07 +0200
commite815e4a6aa90d9e9319ad8fc7ffd840f323e0c23 (patch)
tree05cfc9a1568958d52ef655bdbb0f2ce274002a58 /src
parentMerge pull request #1573 from wwylele/input_fix (diff)
parentFix Qt chinese words encode problem on Windows (diff)
downloadyuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.tar
yuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.tar.gz
yuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.tar.bz2
yuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.tar.lz
yuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.tar.xz
yuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.tar.zst
yuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.zip
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/config.cpp2
-rw-r--r--src/citra_qt/game_list.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp
index 8e247ff5c..d1a19ade9 100644
--- a/src/citra_qt/config.cpp
+++ b/src/citra_qt/config.cpp
@@ -16,7 +16,7 @@ Config::Config() {
// TODO: Don't hardcode the path; let the frontend decide where to put the config files.
qt_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "qt-config.ini";
FileUtil::CreateFullPath(qt_config_loc);
- qt_config = new QSettings(QString::fromStdString(qt_config_loc), QSettings::IniFormat);
+ qt_config = new QSettings(QString::fromLocal8Bit(qt_config_loc.c_str()), QSettings::IniFormat);
Reload();
}
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp
index 1f8d69a03..f1f1c0be4 100644
--- a/src/citra_qt/game_list.cpp
+++ b/src/citra_qt/game_list.cpp
@@ -66,7 +66,7 @@ void GameList::ValidateEntry(const QModelIndex& item)
if (file_path.isEmpty())
return;
- std::string std_file_path = file_path.toStdString();
+ std::string std_file_path = file_path.toLocal8Bit();
if (!FileUtil::Exists(std_file_path) || FileUtil::IsDirectory(std_file_path))
return;
emit GameChosen(file_path);
@@ -148,7 +148,7 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, bool d
emit EntryReady({
new GameListItem(QString::fromStdString(Loader::GetFileTypeString(filetype))),
- new GameListItemPath(QString::fromStdString(physical_name)),
+ new GameListItemPath(QString::fromLocal8Bit(physical_name.c_str())),
new GameListItemSize(FileUtil::GetSize(physical_name)),
});
}