mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +00:00
I hate Windows even more today
This commit is contained in:
parent
62a3f1cbed
commit
265698d6bf
1 changed files with 12 additions and 1 deletions
|
@ -450,7 +450,18 @@ void save(const std::filesystem::path& path) {
|
||||||
fmt::print("Filesystem error: {}\n", error.message());
|
fmt::print("Filesystem error: {}\n", error.message());
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt::print("Saving new configuration file {}\n", fmt::UTF(path.u8string()));
|
try {
|
||||||
|
#ifdef _WIN32
|
||||||
|
fmt::print(L"Saving new configuration file {}\n", path.wstring());
|
||||||
|
#else
|
||||||
|
fmt::print("Saving new configuration file {}\n", fmt::UTF(path.u8string()));
|
||||||
|
#endif
|
||||||
|
} catch (...) {
|
||||||
|
// Path to string conversion particularily on Windows is quite the mess. Just to make
|
||||||
|
// sure the emulator doesn't somehow crash due to a bad string conversion
|
||||||
|
// we catch the exception and print a generic message.
|
||||||
|
fmt::print("Saving new configuration file\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data["General"]["isPS4Pro"] = isNeo;
|
data["General"]["isPS4Pro"] = isNeo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue