6f426c3360
Extracted the most minimal core initialization functionality from `setup()` and `setup2()` so that `ClassDB` could be tested properly (input, audio, rendering, physics etc, are excluded). Display and rendering servers/singletons are not initialized at all. Due to the fact that most subsystems are disabled, fixed various crashes in the process (in order): - `AcceptDialog` OK/cancel swap behavior (used `DisplayServer` while `register_scene_types()`); - `make_default_theme` which depends on `RenderingServer`; - `XRServer` singleton access while calling `register_modules_types()`; - hidden bug in a way joypads are cleaned up (MacOS and Linux only). Removed manual `ClassDB` init/cleanup calls from `test_validate_testing.h`. ClassDB tests: Co-authored-by: Ignacio Etcheverry <ignalfonsore@gmail.com> |
||
---|---|---|
.. | ||
SCsub | ||
test_astar.h | ||
test_basis.h | ||
test_class_db.h | ||
test_color.h | ||
test_gdscript.cpp | ||
test_gdscript.h | ||
test_gui.cpp | ||
test_gui.h | ||
test_macros.h | ||
test_main.cpp | ||
test_main.h | ||
test_math.cpp | ||
test_math.h | ||
test_oa_hash_map.cpp | ||
test_oa_hash_map.h | ||
test_ordered_hash_map.h | ||
test_physics_2d.cpp | ||
test_physics_2d.h | ||
test_physics_3d.cpp | ||
test_physics_3d.h | ||
test_render.cpp | ||
test_render.h | ||
test_shader_lang.cpp | ||
test_shader_lang.h | ||
test_string.h | ||
test_validate_testing.h | ||
test_variant.h |