diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-13 12:05:56 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-13 12:05:56 +0200 |
commit | c5395d3ce2fd3e442f73ecc52c02c5e101a47989 (patch) | |
tree | 5330fc17286d8e06915d92f75aadd45462de3090 /SConstruct | |
parent | 9cfbd6d75f109740275692d9f097554d5d6a7cbd (diff) | |
parent | efaba30116ebe9851d74d5bc20d5443730d23ad7 (diff) | |
download | redot-engine-c5395d3ce2fd3e442f73ecc52c02c5e101a47989.tar.gz |
Merge pull request #91866 from programneer/dont-splash-my-editor
Don't define `NO_EDITOR_SPLASH` in export templates
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/SConstruct b/SConstruct index 8ce504ae2b..f7c40416c7 100644 --- a/SConstruct +++ b/SConstruct @@ -484,14 +484,15 @@ if methods.get_cmdline_bool("fast_unsafe", env.dev_build): if env["use_precise_math_checks"]: env.Append(CPPDEFINES=["PRECISE_MATH_CHECKS"]) -if env.editor_build and env["engine_update_check"]: - env.Append(CPPDEFINES=["ENGINE_UPDATE_CHECK_ENABLED"]) - -if not env.File("#main/splash_editor.png").exists(): - # Force disabling editor splash if missing. - env["no_editor_splash"] = True -if env["no_editor_splash"]: - env.Append(CPPDEFINES=["NO_EDITOR_SPLASH"]) +if env.editor_build: + if env["engine_update_check"]: + env.Append(CPPDEFINES=["ENGINE_UPDATE_CHECK_ENABLED"]) + + if not env.File("#main/splash_editor.png").exists(): + # Force disabling editor splash if missing. + env["no_editor_splash"] = True + if env["no_editor_splash"]: + env.Append(CPPDEFINES=["NO_EDITOR_SPLASH"]) if not env["deprecated"]: env.Append(CPPDEFINES=["DISABLE_DEPRECATED"]) |