diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2020-12-30 09:33:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 09:33:12 +0100 |
commit | f69c116fa7b93b7a6e2aac7456fa547023335d7c (patch) | |
tree | df165dfbd7b7f787c8dcf6a336519182164014a8 /main | |
parent | 72c13c26311efbe14c44ab241e03c2c822ba3a6f (diff) | |
parent | 5cd37de1254011fb5a4d675d9a5894382c0d9b4c (diff) |
Merge pull request #44800 from Calinou/fix-stdout-flush-project-setting
Fix warning spam when using `--help` or `--version` command line argument
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/main.cpp b/main/main.cpp index 70fd45989d..c9911464bb 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -528,6 +528,11 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph ClassDB::register_class<Performance>(); engine->add_singleton(Engine::Singleton("Performance", performance)); + // Only flush stdout in debug builds by default, as spamming `print()` will + // decrease performance if this is enabled. + GLOBAL_DEF("application/run/flush_stdout_on_print", false); + GLOBAL_DEF("application/run/flush_stdout_on_print.debug", true); + GLOBAL_DEF("debug/settings/crash_handler/message", String("Please include this when reporting the bug on https://github.com/godotengine/godot/issues")); @@ -1121,11 +1126,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph } #endif - // Only flush stdout in debug builds by default, as spamming `print()` will - // decrease performance if this is enabled. - GLOBAL_DEF("application/run/flush_stdout_on_print", false); - GLOBAL_DEF("application/run/flush_stdout_on_print.debug", true); - GLOBAL_DEF("logging/file_logging/enable_file_logging", false); // Only file logging by default on desktop platforms as logs can't be // accessed easily on mobile/Web platforms (if at all). |