diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-08-24 08:47:34 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-08-24 09:23:20 +0200 |
commit | de59fe04e73250229e6ac11f9314e1b75dbdef1a (patch) | |
tree | fa99f0927da10719fb7a7e1e8fcce3a97d5fe08c /main | |
parent | 34e58fd831172bad1eebb748c97238c28864423a (diff) | |
download | redot-engine-de59fe04e73250229e6ac11f9314e1b75dbdef1a.tar.gz |
Add print_verbose to print to stdout only in verbose mode
Equivalent of the cumbersome:
if (OS::get_singleton()->is_stdout_verbose())
print_line(msg);
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/main.cpp b/main/main.cpp index 2fd9cfa734..ff153d7c63 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1214,10 +1214,8 @@ Error Main::setup2(Thread::ID p_main_tid_override) { ClassDB::set_current_api(ClassDB::API_NONE); //no more api is registered at this point - if (OS::get_singleton()->is_stdout_verbose()) { - print_line("CORE API HASH: " + itos(ClassDB::get_api_hash(ClassDB::API_CORE))); - print_line("EDITOR API HASH: " + itos(ClassDB::get_api_hash(ClassDB::API_EDITOR))); - } + print_verbose("CORE API HASH: " + itos(ClassDB::get_api_hash(ClassDB::API_CORE))); + print_verbose("EDITOR API HASH: " + itos(ClassDB::get_api_hash(ClassDB::API_EDITOR))); MAIN_PRINT("Main: Done"); return OK; |