summaryrefslogtreecommitdiff
path: root/core/print_string.cpp
diff options
context:
space:
mode:
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 85700fe650..ae15d05a35 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();