mirror of
https://github.com/patchzyy/wiicompiled
synced 2026-09-11 09:25:05 -04:00
Use safe UTF-8 path construction
This commit is contained in:
@@ -90,7 +90,7 @@ std::string RiivoGenericText(const fs::path& path) {
|
||||
}
|
||||
|
||||
fs::path RiivoPathFromUtf8(const std::string& text) {
|
||||
return fs::path(reinterpret_cast<const char8_t*>(text.c_str()));
|
||||
return fs::path(std::u8string(text.begin(), text.end()));
|
||||
}
|
||||
|
||||
std::string RiivoComparablePath(const fs::path& path) {
|
||||
|
||||
Reference in New Issue
Block a user