Refactor more wstring instances to utf8-encoded string

This commit is contained in:
Exzap 2023-09-28 02:51:40 +02:00
parent f6c3c96d94
commit abce406ee8
26 changed files with 82 additions and 114 deletions

View file

@ -229,7 +229,7 @@ void GettingStartedDialog::OnClose(wxCloseEvent& event)
const auto it = std::find(config.game_paths.cbegin(), config.game_paths.cend(), gamePath);
if (it == config.game_paths.cend())
{
config.game_paths.emplace_back(gamePath.generic_wstring());
config.game_paths.emplace_back(_pathToUtf8(gamePath));
m_game_path_changed = true;
}
}
@ -248,7 +248,7 @@ void GettingStartedDialog::OnClose(wxCloseEvent& event)
CafeTitleList::ClearScanPaths();
for (auto& it : GetConfig().game_paths)
CafeTitleList::AddScanPath(it);
CafeTitleList::AddScanPath(_utf8ToPath(it));
CafeTitleList::Refresh();
}