Fix replay folders with special characters.

Implemented in e7ab22286e, broken in cb346e207b.

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:
Freagarach 2021-11-19 11:34:26 +00:00
parent a16ecf0f62
commit ab01a2d2fc

View File

@ -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)