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

Function DedicatedSignalHandler

src/video/dedicated_v.cpp:36–41  ·  view source on GitHub ↗

Signal handlers */

Source from the content-addressed store, hash-verified

34
35/* Signal handlers */
36static void DedicatedSignalHandler(int sig)
37{
38 if (_game_mode == GM_NORMAL && _settings_client.gui.autosave_on_exit) DoExitSave();
39 _exit_game = true;
40 signal(sig, DedicatedSignalHandler);
41}
42#endif
43
44#if defined(_WIN32)

Callers

nothing calls this directly

Calls 1

DoExitSaveFunction · 0.85

Tested by

no test coverage detected