mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 17:06:39 +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:
@@ -78,7 +78,7 @@ void SimulationScriptInit()
|
||||
|
||||
void SimulationInit()
|
||||
{
|
||||
TIMER("SimulationInit");
|
||||
TIMER(L"SimulationInit");
|
||||
|
||||
new CEntityTemplateCollection;
|
||||
new CFormationCollection;
|
||||
@@ -87,8 +87,8 @@ void SimulationInit()
|
||||
g_TechnologyCollection.LoadTechnologies();
|
||||
new CFormationManager;
|
||||
new CTriggerManager;
|
||||
g_TriggerManager.LoadXml(CStr("scripts/TriggerSpecs.xml"));
|
||||
g_ScriptingHost.RunScript("scripts/trigger_functions.js");
|
||||
g_TriggerManager.LoadXml(L"scripts/TriggerSpecs.xml");
|
||||
g_ScriptingHost.RunScript(L"scripts/trigger_functions.js");
|
||||
|
||||
// CEntityManager is managed by CWorld
|
||||
//new CEntityManager;
|
||||
@@ -98,9 +98,9 @@ void SimulationInit()
|
||||
|
||||
void SimulationShutdown()
|
||||
{
|
||||
TIMER_BEGIN("shutdown Pathfinder");
|
||||
TIMER_BEGIN(L"shutdown Pathfinder");
|
||||
delete &g_Pathfinder;
|
||||
TIMER_END("shutdown Pathfinder");
|
||||
TIMER_END(L"shutdown Pathfinder");
|
||||
|
||||
// Managed by CWorld
|
||||
// delete &g_EntityManager;
|
||||
|
||||
Reference in New Issue
Block a user