Merge pull request #91866 from programneer/dont-splash-my-editor

Don't define `NO_EDITOR_SPLASH` in export templates
This commit is contained in:
Rémi Verschelde
2024-05-13 12:05:56 +02:00
3 changed files with 10 additions and 9 deletions

View File

@ -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 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.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"])