mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 13:00:26 +02:00
Use safe UTF-8 path construction
This commit is contained in:
1 parent
7ebda6bf7f
commit
4897e7e27d
2 files changed
+2
-2
No files matched your search
@@ -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