summaryrefslogtreecommitdiff
path: root/core/config
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-20 13:22:08 +0200
committerGitHub <noreply@github.com>2021-06-20 13:22:08 +0200
commitcca29b78b9986872883dfc908beb88dc9f07d10e (patch)
tree745ac090c56a16b9033e2cbe21531ebbd6f4de9c /core/config
parent671bd64e4a9984a6a308bc97d6de2eb3bc32fad8 (diff)
parent0eb9b414c13a67203b0d1cc5bd878afe63d3676b (diff)
Merge pull request #48359 from Calinou/add-engine-print-error-property
Diffstat (limited to 'core/config')
-rw-r--r--core/config/engine.cpp8
-rw-r--r--core/config/engine.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/core/config/engine.cpp b/core/config/engine.cpp
index 99ec1aeb5b..13cfd51570 100644
--- a/core/config/engine.cpp
+++ b/core/config/engine.cpp
@@ -190,6 +190,14 @@ bool Engine::is_validation_layers_enabled() const {
return use_validation_layers;
}
+void Engine::set_print_error_messages(bool p_enabled) {
+ _print_error_enabled = p_enabled;
+}
+
+bool Engine::is_printing_error_messages() const {
+ return _print_error_enabled;
+}
+
void Engine::add_singleton(const Singleton &p_singleton) {
singletons.push_back(p_singleton);
singleton_ptrs[p_singleton.name] = p_singleton.ptr;
diff --git a/core/config/engine.h b/core/config/engine.h
index 276da1c7ea..ecf07952ab 100644
--- a/core/config/engine.h
+++ b/core/config/engine.h
@@ -100,6 +100,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;