Changeset View
Changeset View
Standalone View
Standalone View
source/main.cpp
Show First 20 Lines • Show All 469 Lines • ▼ Show 20 Lines | static void NonVisualFrame() | ||||
static u32 turn = 0; | static u32 turn = 0; | ||||
debug_printf("Turn %u (%u)...\n", turn++, DEFAULT_TURN_LENGTH); | debug_printf("Turn %u (%u)...\n", turn++, DEFAULT_TURN_LENGTH); | ||||
g_Game->GetSimulation2()->Update(DEFAULT_TURN_LENGTH); | g_Game->GetSimulation2()->Update(DEFAULT_TURN_LENGTH); | ||||
g_Profiler.Frame(); | g_Profiler.Frame(); | ||||
if (g_Game->IsGameFinished()) | if (g_Game->IsGameFinished()) | ||||
{ | |||||
g_Profiler2.SaveToFile(); | |||||
QuitEngine(); | QuitEngine(); | ||||
} | } | ||||
} | |||||
static void MainControllerInit() | static void MainControllerInit() | ||||
{ | { | ||||
// add additional input handlers only needed by this controller: | // add additional input handlers only needed by this controller: | ||||
// must be registered after gui_handler. Should mayhap even be last. | // must be registered after gui_handler. Should mayhap even be last. | ||||
in_add_handler(MainInputHandler); | in_add_handler(MainInputHandler); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 263 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator