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
CafeTitleList::Initialize(ActiveSettings::GetUserDataPath("title_list_cache.xml"));
for (auto& it : GetConfig().game_paths)
CafeTitleList::AddScanPath(it);
CafeTitleList::AddScanPath(_utf8ToPath(it));
fs::path mlcPath = ActiveSettings::GetMlcPath();
if (!mlcPath.empty())
CafeTitleList::SetMLCPath(mlcPath);