MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / resetSubsystems

Function resetSubsystems

src/OpenLoco/src/OpenLoco.cpp:158–177  ·  view source on GitHub ↗

0x004C57C0

Source from the content-addressed store, hash-verified

156
157 // 0x004C57C0
158 void resetSubsystems()
159 {
160 Ui::Windows::MapToolTip::reset();
161
162 Colours::initColourMap();
163 Ui::WindowManager::init();
164 Ui::ViewportManager::init();
165
166 Input::init();
167 Input::initMouse();
168
169 // tooltip-related
170 Ui::ToolTip::set_52336E(false);
171
172 Ui::Windows::TextInput::cancel();
173
174 // TODO Move this to a more generic, initialise game state function when
175 // we have one hooked / implemented.
176 autosaveReset();
177 }
178
179 static void initialise()
180 {

Callers 6

initFunction · 0.85
startFunction · 0.85
initialiseFunction · 0.85
updateEnd2Function · 0.85
importSaveToGameStateFunction · 0.85
startFunction · 0.85

Calls 7

initColourMapFunction · 0.85
initMouseFunction · 0.85
set_52336EFunction · 0.85
cancelFunction · 0.85
autosaveResetFunction · 0.85
resetFunction · 0.70
initFunction · 0.70

Tested by

no test coverage detected