Command line: support '-s2 ssc'

This commit is contained in:
tomcw 2022-06-26 19:06:39 +01:00
parent bba86863c3
commit 3ab80d9b9c
3 changed files with 15 additions and 1 deletions

View File

@ -48,8 +48,10 @@
Insert a parallel printer card into slot 1.<br><br>
-s2 empty<br>
Remove the SSC card from slot 2.<br><br>
-s2 ssc<br>
Insert a SSC into slot 2.<br><br>
-s3 empty<br>
Remove the Uthernet card from slot 3.<br><br>
Remove any card from slot 3.<br><br>
-s3 vidhd<br>
Insert a VidHD card into slot 3.<br><br>
-s5 diskii<br>

View File

@ -174,6 +174,13 @@ bool ProcessCmdLine(LPSTR lpCmdLine)
else
LogFileOutput("Parallel Printer card currently only supported in slot 1\n");
}
if (strcmp(lpCmdLine, "ssc") == 0)
{
if (slot == SLOT2)
g_cmdLine.slotInsert[slot] = CT_SSC;
else
LogFileOutput("SSC currently only supported in slot 2\n");
}
if (strcmp(lpCmdLine, "vidhd") == 0)
{
if (slot == SLOT3)

View File

@ -756,6 +756,11 @@ static void RepeatInitialization(void)
GetCardMgr().Insert(SLOT1, g_cmdLine.slotInsert[SLOT1]);
}
if (g_cmdLine.slotInsert[SLOT2] != CT_Empty && g_cmdLine.slotInsert[SLOT2] == CT_SSC) // For now just support SSC in slot 2
{
GetCardMgr().Insert(SLOT2, g_cmdLine.slotInsert[SLOT2]);
}
if (g_cmdLine.enableDumpToRealPrinter && GetCardMgr().IsParallelPrinterCardInstalled())
{
GetCardMgr().GetParallelPrinterCard()->SetEnableDumpToRealPrinter(true);