summaryrefslogtreecommitdiff
path: root/src/citra_qt/game_list.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2016-03-27 22:03:07 -0400
committerGravatar bunnei2016-03-27 22:03:07 -0400
commite815e4a6aa90d9e9319ad8fc7ffd840f323e0c23 (patch)
tree05cfc9a1568958d52ef655bdbb0f2ce274002a58 /src/citra_qt/game_list.cpp
parentMerge pull request #1573 from wwylele/input_fix (diff)
parentFix Qt chinese words encode problem on Windows (diff)
downloadyuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.tar.gz
yuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.tar.xz
yuzu-e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23.zip
Merge pull request #1541 from LFsWang/path
Fix Qt string encode problem on Windows
Diffstat (limited to 'src/citra_qt/game_list.cpp')
-rw-r--r--src/citra_qt/game_list.cpp4
1 files changed, 2 insertions, 2 deletions
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)
66 66
67 if (file_path.isEmpty()) 67 if (file_path.isEmpty())
68 return; 68 return;
69 std::string std_file_path = file_path.toStdString(); 69 std::string std_file_path = file_path.toLocal8Bit();
70 if (!FileUtil::Exists(std_file_path) || FileUtil::IsDirectory(std_file_path)) 70 if (!FileUtil::Exists(std_file_path) || FileUtil::IsDirectory(std_file_path))
71 return; 71 return;
72 emit GameChosen(file_path); 72 emit GameChosen(file_path);
@@ -148,7 +148,7 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, bool d
148 148
149 emit EntryReady({ 149 emit EntryReady({
150 new GameListItem(QString::fromStdString(Loader::GetFileTypeString(filetype))), 150 new GameListItem(QString::fromStdString(Loader::GetFileTypeString(filetype))),
151 new GameListItemPath(QString::fromStdString(physical_name)), 151 new GameListItemPath(QString::fromLocal8Bit(physical_name.c_str())),
152 new GameListItemSize(FileUtil::GetSize(physical_name)), 152 new GameListItemSize(FileUtil::GetSize(physical_name)),
153 }); 153 });
154 } 154 }