adding the window of the cgram debugger (-g to activate)

This commit is contained in:
Clément Le Bihan
2020-03-28 14:52:42 +01:00
parent 1ea067d479
commit 618c708df6
5 changed files with 66 additions and 30 deletions

View File

@@ -32,10 +32,11 @@ void parseArguments(int argc, char **argv, SNES &snes)
{"memory", no_argument, 0, 'm'},
{"header", no_argument, 0, 'h'},
{"bus", no_argument, 0, 'b'},
{"cgram", no_argument, 0, 'g'},
{0, 0, 0, 0}
};
int c = getopt_long(argc, argv, "camhb", long_options, &option_index);
int c = getopt_long(argc, argv, "camhbg", long_options, &option_index);
if (c == -1)
break;
switch (c) {
@@ -57,6 +58,9 @@ void parseArguments(int argc, char **argv, SNES &snes)
case 'b':
snes.enableMemoryBusDebugging();
break;
case 'g':
snes.enableCgramDebugging();
break;
default:
break;
}