mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-09 20:10:37 -04:00
Fix portable mode Unicode (#1893)
* Fix portable mode Unicode Fixes https://github.com/TwilitRealm/dusklight/issues/1839 * Use path_from_utf8 instead Huh yeah sure we have that apparently
This commit is contained in:
committed by
GitHub
parent
7af51e53bd
commit
21692d5a78
+2
-2
@@ -111,7 +111,7 @@ std::filesystem::path get_pref_path() {
|
||||
Log.fatal("Unable to get PrefPath: {}", SDL_GetError());
|
||||
}
|
||||
|
||||
std::filesystem::path result{reinterpret_cast<const char8_t*>(prefPath)};
|
||||
std::filesystem::path result = path_from_utf8(prefPath);
|
||||
SDL_free(prefPath);
|
||||
return result;
|
||||
}
|
||||
@@ -128,7 +128,7 @@ std::filesystem::path base_path_relative(const std::filesystem::path& path) {
|
||||
if (!basePath) {
|
||||
return path;
|
||||
}
|
||||
return std::filesystem::path{basePath} / path;
|
||||
return path_from_utf8(basePath) / path;
|
||||
}
|
||||
|
||||
std::filesystem::path default_data_path(const std::filesystem::path& prefPath) {
|
||||
|
||||
Reference in New Issue
Block a user