mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 13:47:15 +00:00
huge cleanup and conversion of most string handling (especially paths) to unicode
please note: format strings must be %hs for char* arguments and %ls for wchar_t* This was SVN commit r7161.
This commit is contained in:
@@ -135,7 +135,7 @@ void CScriptObject::Compile( const CStrW& FileNameTag, const CStrW& FunctionBody
|
||||
|
||||
const char* argnames[] = { "evt" };
|
||||
utf16string str16=FunctionBody.utf16();
|
||||
Function = JS_CompileUCFunction( g_ScriptingHost.GetContext(), NULL, NULL, 1, argnames, str16.c_str(), str16.size(), (CStr)FileNameTag, 0 );
|
||||
Function = JS_CompileUCFunction( g_ScriptingHost.GetContext(), NULL, NULL, 1, argnames, str16.c_str(), str16.size(), CStr(FileNameTag), 0 );
|
||||
|
||||
Root();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user