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:
parent
a16ecf0f62
commit
ab01a2d2fc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user