mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 13:45:11 +00:00
adding the window of the cgram debugger (-g to activate)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user