MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RequestExit

Method RequestExit

Source/Engine/Engine/Engine.cpp:269–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void 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

Callers 5

UpdateMethod · 0.80
BuildCommandMethod · 0.80
MainWindow_OnClosedMethod · 0.80
OnUpdateMethod · 0.80
OnUpdateFunction · 0.80

Calls 1

OnAppExitMethod · 0.80

Tested by

no test coverage detected