Debugger: added help for videoinfo cmd

This commit is contained in:
tomcw
2019-09-22 16:53:38 +01:00
parent b3eb789e03
commit 604aff4bbb
6 changed files with 26 additions and 12 deletions
+3 -9
View File
@@ -6814,26 +6814,20 @@ Update_t CmdVideoScannerInfo(int nArgs)
{
if (nArgs != 1)
{
ConsoleBufferPush("Video-scanner display config: <dec|hex|real|apple>");
Help_Arg_1(CMD_VIDEO_SCANNER_INFO);
}
else
{
if (strcmp(g_aArgs[1].sArg, "dec") == 0)
{
g_videoScannerDisplayInfo.isDecimal = true;
}
else if (strcmp(g_aArgs[1].sArg, "hex") == 0)
{
g_videoScannerDisplayInfo.isDecimal = false;
}
else if (strcmp(g_aArgs[1].sArg, "real") == 0)
{
g_videoScannerDisplayInfo.isHorzReal = true;
}
else if (strcmp(g_aArgs[1].sArg, "apple") == 0)
{
g_videoScannerDisplayInfo.isHorzReal = false;
}
else
Help_Arg_1(CMD_VIDEO_SCANNER_INFO);
}
ConsoleBufferToDisplay();