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

@ -923,7 +923,7 @@ void GeneralSettings2::StoreConfig()
config.game_paths.clear();
for (auto& path : m_game_paths->GetStrings())
config.game_paths.emplace_back(path);
config.game_paths.emplace_back(path.utf8_string());
auto selection = m_language->GetSelection();
if (selection == 0)
@ -1530,7 +1530,7 @@ void GeneralSettings2::ApplyConfig()
for (auto& path : config.game_paths)
{
m_game_paths->Append(path);
m_game_paths->Append(to_wxString(path));
}
const auto app = (CemuApp*)wxTheApp;