aboutsummaryrefslogtreecommitdiff
path: root/core/print_string.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-08-01 22:10:38 -0300
committerJuan Linietsky2014-08-01 22:10:38 -0300
commit678948068bbde7f12a9c5f28a467b6cf4d127851 (patch)
tree75572f3a5cc6089a6ca3046e9307d0a7c0b72c51 /core/print_string.cpp
parent9ff6d55822647c87eef392147ea15641d0922d47 (diff)
downloadgodot-678948068bbde7f12a9c5f28a467b6cf4d127851.tar.gz
godot-678948068bbde7f12a9c5f28a467b6cf4d127851.tar.zst
godot-678948068bbde7f12a9c5f28a467b6cf4d127851.zip
Diffstat (limited to 'core/print_string.cpp')
-rw-r--r--core/print_string.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/print_string.cpp b/core/print_string.cpp
index 85700fe65..ae15d05a3 100644
--- a/core/print_string.cpp
+++ b/core/print_string.cpp
@@ -31,7 +31,7 @@
#include <stdio.h>
static PrintHandlerList *print_handler_list=NULL;
-
+bool _print_line_enabled=true;
void add_print_handler(PrintHandlerList *p_handler) {
@@ -75,6 +75,9 @@ void remove_print_handler(PrintHandlerList *p_handler) {
void print_line(String p_string) {
+ if (!_print_line_enabled)
+ return;
+
OS::get_singleton()->print("%s\n",p_string.utf8().get_data());
_global_lock();