mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Fix #10496: Game can't handle path with non-english string
This commit is contained in:
@@ -144,7 +144,7 @@ namespace Path
|
||||
|
||||
const std::string GetExtension(const std::string& path)
|
||||
{
|
||||
return fs::path{ path }.extension().string();
|
||||
return fs::u8path(path).extension().string();
|
||||
}
|
||||
|
||||
const utf8* GetExtension(const utf8* path)
|
||||
|
||||
Reference in New Issue
Block a user