From eed8a06fc09e69bf0f1dbf6466a51ccbb8f63a0d Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 4 Feb 2017 19:00:31 +0200 Subject: [PATCH] Several fixes to the help command --- Core/debugger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/debugger.c b/Core/debugger.c index cea472e..8cc4c20 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -646,7 +646,7 @@ static void print_usage(GB_gameboy_t *gb, const debugger_command_t *command) { GB_log(gb, "Usage: %s", command->command); - if (command->arguments_format) { + if (command->modifiers_format) { GB_log(gb, "[/%s]", command->modifiers_format); } @@ -1388,7 +1388,7 @@ static bool palettes(GB_gameboy_t *gb, char *arguments, char *modifiers, const d } static bool help(GB_gameboy_t *gb, char *arguments, char *modifiers, const debugger_command_t *command); -#define HELP_NEWLINE "\n " +#define HELP_NEWLINE "\n " /* Commands without implementations are aliases of the previous non-alias commands */ static const debugger_command_t commands[] = { @@ -1790,4 +1790,4 @@ bool GB_debugger_evaluate(GB_gameboy_t *gb, const char *string, uint16_t *result *result_bank = value.has_bank? value.value : -1; } return error; -} \ No newline at end of file +}