mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 07:00:30 +02:00
fix accented paths
This commit is contained in:
1 parent
1912292c80
commit
0403f176bd
2 files changed
+4
-1
No files matched your search
@@ -776,7 +776,8 @@ inline std::string DvdRoot(std::string fallback = "") {
|
||||
// never to the process working directory (docs/WHEELWIZARD_CONTRACT.md).
|
||||
inline std::filesystem::path ResolveRelativeTo(const std::filesystem::path& base,
|
||||
const std::string& value) {
|
||||
std::filesystem::path path(value);
|
||||
// Config strings are UTF-8; the char overload would decode via the ANSI codepage.
|
||||
std::filesystem::path path(reinterpret_cast<const char8_t*>(value.c_str()));
|
||||
if (path.is_relative()) {
|
||||
path = base / path;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user