Make no argument for softbreak be equivalent to "on"

This commit is contained in:
James Larrowe 2020-05-30 16:46:17 -04:00
parent abdece7737
commit 6fcf77c7f6
1 changed files with 1 additions and 1 deletions

View File

@ -836,7 +836,7 @@ static bool registers(GB_gameboy_t *gb, char *arguments, char *modifiers, const
static bool softbreak(GB_gameboy_t *gb, char *arguments, char *modifiers, const debugger_command_t *command)
{
NO_MODIFIERS
if (strcmp(lstrip(arguments), "on") == 0) {
if (strcmp(lstrip(arguments), "on") == 0 || !strlen(lstrip(arguments))) {
gb->has_software_breakpoints = true;
}
else if(strcmp(lstrip(arguments), "off") == 0) {