Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/Simulation2.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | CSimulation2Impl(CUnitManager* unitManager, shared_ptr<ScriptRuntime> rt, CTerrain* terrain) : | ||||
RegisterFileReloadFunc(ReloadChangedFileCB, this); | RegisterFileReloadFunc(ReloadChangedFileCB, this); | ||||
// Tests won't have config initialised | // Tests won't have config initialised | ||||
if (CConfigDB::IsInitialised()) | if (CConfigDB::IsInitialised()) | ||||
{ | { | ||||
CFG_GET_VAL("ooslog", m_EnableOOSLog); | CFG_GET_VAL("ooslog", m_EnableOOSLog); | ||||
CFG_GET_VAL("serializationtest", m_EnableSerializationTest); | CFG_GET_VAL("serializationtest", m_EnableSerializationTest); | ||||
CFG_GET_VAL("rejointest", m_RejoinTestTurn); | CFG_GET_VAL("rejointest", m_RejoinTestTurn); | ||||
if (m_RejoinTestTurn <= 0) // Handle bogus values of the arg | if (m_RejoinTestTurn < 0) // Handle bogus values of the arg | ||||
m_RejoinTestTurn = -1; | m_RejoinTestTurn = -1; | ||||
} | } | ||||
if (m_EnableOOSLog) | if (m_EnableOOSLog) | ||||
{ | { | ||||
m_OOSLogPath = createDateIndexSubdirectory(psLogDir() / "oos_logs"); | m_OOSLogPath = createDateIndexSubdirectory(psLogDir() / "oos_logs"); | ||||
debug_printf("Writing ooslogs to %s\n", m_OOSLogPath.string8().c_str()); | debug_printf("Writing ooslogs to %s\n", m_OOSLogPath.string8().c_str()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 921 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator