Add more checks

This commit is contained in:
JeremyStar™ 2024-04-07 21:58:48 +02:00
parent a4d5eb2157
commit 72bc71935e
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -82,6 +82,13 @@ func update_window_properties() -> void:
# Perform startup checks
func perform_checks() -> void:
ldiag("Performing checks")
# Check for development mode
if config_dev: lwarn("Development mode is active, here be dragons!")
# Check orphan nodes setting
if config_print_orphan_nodes: lwarn("Bessere Tests is allowed to complain about orphan nodes. It's known that this can lead to false-positive warnings (see #1)")
# Check for testing directory
if !DirAccess.dir_exists_absolute(config_test_directory): await lcrash("Testing directory \"" + config_test_directory + "\" does not exist")