Support for unicode paths for game install directories

This commit is contained in:
Ked 2025-03-28 10:49:39 +08:00
parent 55f6bab743
commit 118da1670c
2 changed files with 2 additions and 2 deletions

View File

@ -842,7 +842,7 @@ void load(const std::filesystem::path& path) {
m_window_size_H = toml::find_or<int>(gui, "mw_height", 0); m_window_size_H = toml::find_or<int>(gui, "mw_height", 0);
const auto install_dir_array = const auto install_dir_array =
toml::find_or<std::vector<std::string>>(gui, "installDirs", {}); toml::find_or<std::vector<std::u8string>>(gui, "installDirs", {});
try { try {
install_dirs_enabled = toml::find<std::vector<bool>>(gui, "installDirsEnabled"); install_dirs_enabled = toml::find<std::vector<bool>>(gui, "installDirsEnabled");

View File

@ -817,7 +817,7 @@ void SettingsDialog::ResetInstallFolders() {
if (data.contains("GUI")) { if (data.contains("GUI")) {
const toml::value& gui = data.at("GUI"); const toml::value& gui = data.at("GUI");
const auto install_dir_array = const auto install_dir_array =
toml::find_or<std::vector<std::string>>(gui, "installDirs", {}); toml::find_or<std::vector<std::u8string>>(gui, "installDirs", {});
std::vector<bool> install_dirs_enabled; std::vector<bool> install_dirs_enabled;
try { try {