diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-11-29 14:01:56 +0100 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-11-29 14:01:56 +0100 |
commit | 85a955fc5659f047dcc8fff6629f33a75dabaee9 (patch) | |
tree | 53297eef2625ac0bb8656c41d0215827676adc25 | |
parent | fa0e6820270ad3702cec7b298fdbd5db6a518703 (diff) |
Flush remaining messages before quitting the game when loading fails
This change allows error messages to be printed in the editor debugger when the game fails on load, instead of displaying them in the console terminal only.
-rw-r--r-- | main/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index 22a31d597e..e6fba3c7b4 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2090,6 +2090,11 @@ void Main::cleanup() { ERR_FAIL_COND(!_start_success); + if (script_debugger) { + // Flush any remaining messages + script_debugger->idle_poll(); + } + ResourceLoader::remove_custom_loaders(); ResourceSaver::remove_custom_savers(); |