mirror of https://github.com/mgba-emu/mgba.git
Debugger: Fix nargs-style argument passing
This commit is contained in:
parent
e0b1caf48c
commit
348c1fd741
|
@ -746,10 +746,11 @@ static int _tryCommands(struct CLIDebugger* debugger, struct CLIDebuggerCommandS
|
|||
|
||||
if (commands[i].format[arg] == '+') {
|
||||
dvNext = _parseArg(debugger, args, adjusted, lastArg);
|
||||
--args;
|
||||
--arg;
|
||||
} else {
|
||||
nextArgMandatory = isupper(commands[i].format[arg]) || (commands[i].format[arg] == '*');
|
||||
dvNext = _parseArg(debugger, args, adjusted, commands[i].format[arg]);
|
||||
lastArg = commands[i].format[arg];
|
||||
}
|
||||
|
||||
args += adjusted;
|
||||
|
|
Loading…
Reference in New Issue