| 267 | } |
| 268 | |
| 269 | void Engine::RequestExit(int32 exitCode, FatalErrorType error) |
| 270 | { |
| 271 | if (IsRequestingExit) |
| 272 | return; |
| 273 | #if USE_EDITOR |
| 274 | // Send to editor (will leave play mode if need to) |
| 275 | if (!Editor::Managed->OnAppExit()) |
| 276 | return; |
| 277 | #endif |
| 278 | IsRequestingExit = true; |
| 279 | ExitCode = exitCode; |
| 280 | PRAGMA_DISABLE_DEPRECATION_WARNINGS; |
| 281 | Globals::IsRequestingExit = true; |
| 282 | Globals::ExitCode = exitCode; |
| 283 | PRAGMA_ENABLE_DEPRECATION_WARNINGS; |
| 284 | FatalError = error; |
| 285 | RequestingExit(); |
| 286 | } |
| 287 | |
| 288 | #if !BUILD_SHIPPING |
| 289 |
no test coverage detected