diff options
author | bunnei <bunneidev@gmail.com> | 2016-03-28 04:03:07 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-03-28 04:03:07 +0200 |
commit | e815e4a6aa90d9e9319ad8fc7ffd840f323e0c23 (patch) | |
tree | 05cfc9a1568958d52ef655bdbb0f2ce274002a58 /src/citra_qt/game_list.cpp | |
parent | Merge pull request #1573 from wwylele/input_fix (diff) | |
parent | Fix Qt chinese words encode problem on Windows (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/citra_qt/game_list.cpp | 4 |
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) 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)), }); } |