MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / MainLoop

Method MainLoop

src/video/null_v.cpp:49–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47void VideoDriver_Null::MakeDirty(int, int, int, int) {}
48
49void VideoDriver_Null::MainLoop()
50{
51 uint i;
52
53 for (i = 0; i < this->ticks; i++) {
54 ::GameLoop();
55 ::InputLoop();
56 ::UpdateWindows();
57 }
58
59 /* If requested, make a save just before exit. The normal exit-flow is
60 * not triggered from this driver, so we have to do this manually. */
61 if (_settings_client.gui.autosave_on_exit) {
62 DoExitSave();
63 }
64}
65
66bool VideoDriver_Null::ChangeResolution(int, int) { return false; }
67

Callers

nothing calls this directly

Calls 4

GameLoopFunction · 0.85
InputLoopFunction · 0.85
UpdateWindowsFunction · 0.85
DoExitSaveFunction · 0.85

Tested by

no test coverage detected