Fix game path not respecting utf8 encoding

This commit is contained in:
Exzap 2023-09-30 03:07:49 +02:00
parent 8bb7ce098c
commit ce34b95b82

View File

@ -139,7 +139,7 @@ void CemuCommonInit()
// init title list // init title list
CafeTitleList::Initialize(ActiveSettings::GetUserDataPath("title_list_cache.xml")); CafeTitleList::Initialize(ActiveSettings::GetUserDataPath("title_list_cache.xml"));
for (auto& it : GetConfig().game_paths) for (auto& it : GetConfig().game_paths)
CafeTitleList::AddScanPath(it); CafeTitleList::AddScanPath(_utf8ToPath(it));
fs::path mlcPath = ActiveSettings::GetMlcPath(); fs::path mlcPath = ActiveSettings::GetMlcPath();
if (!mlcPath.empty()) if (!mlcPath.empty())
CafeTitleList::SetMLCPath(mlcPath); CafeTitleList::SetMLCPath(mlcPath);