diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-05-01 23:09:48 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-05-01 23:11:08 +0200 |
commit | 0eb9b414c13a67203b0d1cc5bd878afe63d3676b (patch) | |
tree | daa264c3bb88191dc890cb39f957f48d221220cb /core/config/engine.h | |
parent | 33a0fb6e02ce9ee5d2fe97377a3ec84591b59f7c (diff) |
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.
Diffstat (limited to 'core/config/engine.h')
-rw-r--r-- | core/config/engine.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; |