mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 19:32:46 +00:00
Fix replay folders with special characters.
Implemented ine7ab22286e, broken incb346e207b. Patch by: @Langbart Help by: @elexis Differential revision: https://code.wildfiregames.com/D4345 Fixes: #6373 Reviewed by: @vladislavbelov Tested by: @Freagarach This was SVN commit r26005.
This commit is contained in:
@@ -28,7 +28,8 @@ namespace JSI_VisualReplay
|
||||
{
|
||||
CStrW GetReplayDirectoryName(const CStrW& directoryName)
|
||||
{
|
||||
return OsPath(VisualReplay::GetDirectoryPath() / directoryName).string();
|
||||
// The string conversion is added to account for non-latin characters.
|
||||
return wstring_from_utf8(OsPath(VisualReplay::GetDirectoryPath() / directoryName).string8());
|
||||
}
|
||||
|
||||
void RegisterScriptFunctions(const ScriptRequest& rq)
|
||||
|
||||
Reference in New Issue
Block a user