Several fixes to the help command

This commit is contained in:
Lior Halphon 2017-02-04 19:00:31 +02:00
parent 57c73c8a51
commit eed8a06fc0
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}