Merge pull request #46307 from RandomShaper/fix_crash_mono_glue

Make glue generation shutdown more graceful
This commit is contained in:
Rémi Verschelde
2021-02-22 21:39:01 +01:00
committed by GitHub
3 changed files with 8 additions and 3 deletions

View File

@@ -2576,8 +2576,10 @@ void Main::force_redraw() {
* so that the engine closes cleanly without leaking memory or crashing.
* The order matters as some of those steps are linked with each other.
*/
void Main::cleanup() {
ERR_FAIL_COND(!_start_success);
void Main::cleanup(bool p_force) {
if (!p_force) {
ERR_FAIL_COND(!_start_success);
}
EngineDebugger::deinitialize();