diff options
author | LFsWang <tnst92002@gmail.com> | 2016-03-17 10:18:45 +0100 |
---|---|---|
committer | LFsWang <tnst92002@gmail.com> | 2016-03-17 10:18:45 +0100 |
commit | 933af7af6687349860eb2fe5b28012f881e231d1 (patch) | |
tree | 6ba36e1c43ec909d32aa9fa4c79528098f5976a0 /src/citra_qt/game_list.cpp | |
parent | Merge pull request #1466 from LittleWhite-tb/gamelist-update-recent (diff) | |
download | yuzu-933af7af6687349860eb2fe5b28012f881e231d1.tar yuzu-933af7af6687349860eb2fe5b28012f881e231d1.tar.gz yuzu-933af7af6687349860eb2fe5b28012f881e231d1.tar.bz2 yuzu-933af7af6687349860eb2fe5b28012f881e231d1.tar.lz yuzu-933af7af6687349860eb2fe5b28012f881e231d1.tar.xz yuzu-933af7af6687349860eb2fe5b28012f881e231d1.tar.zst yuzu-933af7af6687349860eb2fe5b28012f881e231d1.zip |
Diffstat (limited to 'src/citra_qt/game_list.cpp')
-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)), }); } |