Don't tell user tick count has been reset if they've kept the value

"Tick count reset." is currently logged even if the user supplied the 'keep' argument.
This commit is contained in:
Braiden Gent
2024-03-22 03:47:33 -07:00
committed by GitHub
parent e7792c16b2
commit 66ec48e0eb

View File

@@ -1702,8 +1702,8 @@ static bool ticks(GB_gameboy_t *gb, char *arguments, char *modifiers, const debu
GB_log(gb, "T-cycles: %llu\n", (unsigned long long)gb->debugger_ticks);
GB_log(gb, "M-cycles: %llu\n", (unsigned long long)gb->debugger_ticks / 4);
GB_log(gb, "Absolute 8MHz ticks: %llu\n", (unsigned long long)gb->absolute_debugger_ticks);
GB_log(gb, "Tick count reset.\n");
if (!keep) {
GB_log(gb, "Tick count reset.\n");
gb->debugger_ticks = 0;
gb->absolute_debugger_ticks = 0;
}