From 0eb9b414c13a67203b0d1cc5bd878afe63d3676b Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 1 May 2021 23:09:48 +0200 Subject: Add `Engine.print_error_messages` property to disable printing errors This can be used during unit test suite runs to hide error and warning messages. Care should be taken when using this feature, as it can hide important information if used wrongly. --- core/config/engine.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/config/engine.h') diff --git a/core/config/engine.h b/core/config/engine.h index a9080e3dfd..85a8884a05 100644 --- a/core/config/engine.h +++ b/core/config/engine.h @@ -98,6 +98,9 @@ public: void set_time_scale(float p_scale); float get_time_scale() const; + void set_print_error_messages(bool p_enabled); + bool is_printing_error_messages() const; + void set_frame_delay(uint32_t p_msec); uint32_t get_frame_delay() const; -- cgit v1.2.3