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

Function exitWithError

src/OpenLoco/src/OpenLoco.cpp:107–116  ·  view source on GitHub ↗

0x004BE621

Source from the content-addressed store, hash-verified

105
106 // 0x004BE621
107 [[noreturn]] void exitWithError(StringId titleStringId, StringId messageStringId)
108 {
109 char titleBuffer[256] = { 0 };
110 char messageBuffer[256] = { 0 };
111 StringManager::formatString(titleBuffer, 255, titleStringId);
112 StringManager::formatString(messageBuffer, 255, messageStringId);
113 Ui::showMessageBox(titleBuffer, messageBuffer);
114
115 exitCleanly();
116 }
117
118 // 0x004BE65E
119 [[noreturn]] void exitCleanly()

Callers 4

startupChecksFunction · 0.85
allocateMapElementsFunction · 0.85
reorganiseFunction · 0.85
tryLoadIndexFunction · 0.85

Calls 3

formatStringFunction · 0.85
showMessageBoxFunction · 0.85
exitCleanlyFunction · 0.85

Tested by

no test coverage detected