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 /platform/windows | |
parent | 34e58fd831172bad1eebb748c97238c28864423a (diff) |
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 'platform/windows')
-rw-r--r-- | platform/windows/joypad.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/windows/joypad.cpp b/platform/windows/joypad.cpp index 796531fe24..b56fb6509e 100644 --- a/platform/windows/joypad.cpp +++ b/platform/windows/joypad.cpp @@ -540,9 +540,7 @@ void JoypadWindows::load_xinput() { } if (!xinput_dll) { - if (OS::get_singleton()->is_stdout_verbose()) { - print_line("Could not find XInput, using DirectInput only"); - } + print_verbose("Could not find XInput, using DirectInput only"); return; } |