mirror of https://github.com/bsnes-emu/bsnes.git
Silently ignoring empty lines
This commit is contained in:
parent
1069637e45
commit
f448865b8a
|
@ -309,7 +309,7 @@ static uint32_t rgbEncode(GB_gameboy_t *gb, unsigned char r, unsigned char g, un
|
|||
|
||||
- (IBAction)consoleInput:(NSTextField *)sender {
|
||||
NSString *line = [sender stringValue];
|
||||
if ([line isEqualToString:@""]) {
|
||||
if ([line isEqualToString:@""] && lastConsoleInput) {
|
||||
line = lastConsoleInput;
|
||||
}
|
||||
else if (line) {
|
||||
|
|
|
@ -610,6 +610,9 @@ next_command:
|
|||
gb->debug_next_command = false;
|
||||
gb->debug_fin_command = false;
|
||||
input = gb->input_callback(gb);
|
||||
if (!input[0]) {
|
||||
goto next_command;
|
||||
}
|
||||
|
||||
char *command_string = input;
|
||||
char *arguments = strchr(input, ' ');
|
||||
|
|
Loading…
Reference in New Issue