From 6672464d5c63827f7d5826a6deb7d66eeea0c49b Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Thu, 31 Aug 2023 13:10:06 -0700 Subject: [PATCH] If -nolog is specified, do not log, not even to say that logging has been disabled [https://github.com/joncampbell123/dosbox-x/issues/4405] --- CHANGELOG | 4 ++++ src/debug/debug_gui.cpp | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 8b8e1811aec..6bfbc4533fe 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,8 @@ 2023.08.15 + - Disable by default message confirmation after snapshot and AVI video + capture, but leave the option there for those who want to enable it (joncampbell123). + - Remove "LOG: Logging output has been disabled." output when -nolog + is specified on the command line (joncampbell123). - Fix stuck Ins key problems by fixing a typo in src/ints/bios_keyboard.cpp. The code is supposed to clear the "Ins key down" flag, but instead cleared all bits EXCEPT "Ins key down" (joncampbell123). diff --git a/src/debug/debug_gui.cpp b/src/debug/debug_gui.cpp index deeb74bb408..ea6f7c71827 100644 --- a/src/debug/debug_gui.cpp +++ b/src/debug/debug_gui.cpp @@ -902,8 +902,7 @@ void LOG::Init() { debuglog=0; } if (control->opt_nolog && !control->opt_test) { - control->opt_nolog = false; - LOG_MSG("Logging output has been disabled."); + // If the user says no log, that means NO LOGGING AT ALL. [https://github.com/joncampbell123/dosbox-x/issues/4405] control->opt_nolog = true; }