1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-29 16:16:38 +00:00

[Core] Add Engine.print_to_stout setting to control printing

Also added notes to the related project settings pointing to the
`Engine` properties.
This commit is contained in:
A Thousand Ships
2024-04-20 20:19:48 +02:00
parent e4e024ab88
commit d49ec39d63
7 changed files with 33 additions and 3 deletions

View File

@@ -267,6 +267,14 @@ bool Engine::is_extra_gpu_memory_tracking_enabled() const {
return extra_gpu_memory_tracking;
}
void Engine::set_print_to_stdout(bool p_enabled) {
CoreGlobals::print_line_enabled = p_enabled;
}
bool Engine::is_printing_to_stdout() const {
return CoreGlobals::print_line_enabled;
}
void Engine::set_print_error_messages(bool p_enabled) {
CoreGlobals::print_error_enabled = p_enabled;
}