mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 16:02:26 +00:00
Support for unicode paths for game install directories
This commit is contained in:
parent
55f6bab743
commit
118da1670c
@ -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");
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user