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

Function returnToTitle

src/OpenLoco/src/Game.cpp:220–244  ·  view source on GitHub ↗

0x0043C0FD

Source from the content-addressed store, hash-verified

218
219 // 0x0043C0FD
220 void returnToTitle()
221 {
222 if (SceneManager::isNetworked())
223 {
224 Ui::WindowManager::closeAllFloatingWindows();
225 }
226
227 Ui::WindowManager::close(Ui::WindowType::options);
228 Ui::WindowManager::close(Ui::WindowType::companyFaceSelection);
229 Ui::WindowManager::close(Ui::WindowType::objectSelection);
230 Ui::WindowManager::close(Ui::WindowType::saveGamePrompt);
231
232 SceneManager::removeSceneFlags(SceneManager::Flags::editor);
233 Audio::stopAll();
234
235 if (Input::hasFlag(Input::Flags::rightMousePressed))
236 {
237 Input::stopCursorDrag();
238 Input::resetFlag(Input::Flags::rightMousePressed);
239 }
240
241 Title::start();
242
243 throw GameException::Interrupt;
244 }
245
246 // 0x0043C427
247 void confirmSaveGame(LoadOrQuitMode promptSaveType)

Callers 3

goToNextStepFunction · 0.85
importSaveToGameStateFunction · 0.85
loadSaveQuitFunction · 0.85

Calls 9

isNetworkedFunction · 0.85
removeSceneFlagsFunction · 0.85
stopAllFunction · 0.85
stopCursorDragFunction · 0.85
hasFlagFunction · 0.70
resetFlagFunction · 0.70
startFunction · 0.70
closeAllFloatingWindowsFunction · 0.50
closeFunction · 0.50

Tested by

no test coverage detected