0x004BE65E
| 117 | |
| 118 | // 0x004BE65E |
| 119 | [[noreturn]] void exitCleanly() |
| 120 | { |
| 121 | Audio::close(); |
| 122 | Audio::disposeDSound(); |
| 123 | Ui::disposeCursors(); |
| 124 | Localisation::unloadLanguageFile(); |
| 125 | |
| 126 | auto tempFilePath = Environment::getPathNoWarning(Environment::PathId::_1tmp); |
| 127 | if (fs::exists(tempFilePath)) |
| 128 | { |
| 129 | auto path8 = tempFilePath.u8string(); |
| 130 | Logging::info("Removing temp file '{}'", path8.c_str()); |
| 131 | fs::remove(tempFilePath); |
| 132 | } |
| 133 | CrashHandler::shutdown(_exHandler); |
| 134 | |
| 135 | // Logging should be the last before terminating. |
| 136 | Logging::shutdown(); |
| 137 | |
| 138 | // SDL_Quit(); |
| 139 | exit(0); |
| 140 | } |
| 141 | |
| 142 | // 0x00441400 |
| 143 | static void startupChecks() |
no test coverage detected