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:
janwas
2009-11-03 21:46:35 +00:00
parent a46f3432f3
commit 8a52113e60
317 changed files with 2517 additions and 2588 deletions
@@ -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;