mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-21 09:11:22 +02:00
Make no argument for softbreak be equivalent to "on"
This commit is contained in:
@@ -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)
|
static bool softbreak(GB_gameboy_t *gb, char *arguments, char *modifiers, const debugger_command_t *command)
|
||||||
{
|
{
|
||||||
NO_MODIFIERS
|
NO_MODIFIERS
|
||||||
if (strcmp(lstrip(arguments), "on") == 0) {
|
if (strcmp(lstrip(arguments), "on") == 0 || !strlen(lstrip(arguments))) {
|
||||||
gb->has_software_breakpoints = true;
|
gb->has_software_breakpoints = true;
|
||||||
}
|
}
|
||||||
else if(strcmp(lstrip(arguments), "off") == 0) {
|
else if(strcmp(lstrip(arguments), "off") == 0) {
|
||||||
|
Reference in New Issue
Block a user