all repos — mgba @ f8f75c4c913965cb656dbeac0c8ee85590082855

mGBA Game Boy Advance Emulator

GBA Debugger: Remove rewind stub
Jeffrey Pfau jeffrey@endrift.com
Sat, 17 Sep 2016 10:27:25 -0700
commit

f8f75c4c913965cb656dbeac0c8ee85590082855

parent

12687faad214b6424c216cc911ebafe239678e7c

1 files changed, 1 insertions(+), 12 deletions(-)

jump to
M src/gba/extra/cli.csrc/gba/extra/cli.c

@@ -18,13 +18,11 @@ static uint32_t _GBACLIDebuggerLookupIdentifier(struct CLIDebuggerSystem*, const char* name, struct CLIDebugVector* dv);

static void _frame(struct CLIDebugger*, struct CLIDebugVector*); static void _load(struct CLIDebugger*, struct CLIDebugVector*); -static void _rewind(struct CLIDebugger*, struct CLIDebugVector*); static void _save(struct CLIDebugger*, struct CLIDebugVector*); struct CLIDebuggerCommandSummary _GBACLIDebuggerCommands[] = { { "frame", _frame, 0, "Frame advance" }, { "load", _load, CLIDVParse, "Load a savestate" }, - { "rewind", _rewind, CLIDVParse, "Rewind the emulation a number of recorded intervals" }, { "save", _save, CLIDVParse, "Save a savestate" }, { 0, 0, 0, 0 } };

@@ -104,16 +102,7 @@

mCoreLoadState(gbaDebugger->core, dv->intValue, SAVESTATE_SCREENSHOT); } -static void _rewind(struct CLIDebugger* debugger, struct CLIDebugVector* dv) { - struct GBACLIDebugger* gbaDebugger = (struct GBACLIDebugger*) debugger->system; - if (!dv) { - // TODO: Put back rewind - } else if (dv->type != CLIDV_INT_TYPE) { - printf("%s\n", ERROR_MISSING_ARGS); - } else { - // TODO: Put back rewind - } -} +// TODO: Put back rewind static void _save(struct CLIDebugger* debugger, struct CLIDebugVector* dv) { if (!dv || dv->type != CLIDV_INT_TYPE) {