mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 09:47:24 +00:00
Convert CConsole to take UTF-8 strings.
This avoids vswprintf failures when printing non-ASCII char* strings from CLogger into the console. Also convert ScriptInterface::ToString to return UTF-8, to avoid some utf8_from_wstring calls. Also remove some unused and redundant CConsole functions. This was SVN commit r16333.
This commit is contained in:
@@ -628,7 +628,7 @@ void ForceGC(ScriptInterface::CxPrivate* pCxPrivate)
|
||||
double time = timer_Time();
|
||||
JS_GC(pCxPrivate->pScriptInterface->GetJSRuntime());
|
||||
time = timer_Time() - time;
|
||||
g_Console->InsertMessage(L"Garbage collection completed in: %f", time);
|
||||
g_Console->InsertMessage(fmt::sprintf("Garbage collection completed in: %f", time));
|
||||
}
|
||||
|
||||
void DumpSimState(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
|
||||
|
||||
Reference in New Issue
Block a user