Fixed cmd line '-s7 empty' so that 'Harddisk Enable' is updated in Registry/conf.ini file

. this matches -s7-empty-on-exit and the -d1,-d2,-h1,-h2 switches
This commit is contained in:
tomcw 2020-05-28 21:41:15 +01:00
parent b132b0d0a8
commit fa047974ec

View File

@ -1964,6 +1964,8 @@ static void RepeatInitialization(void)
LogFileOutput("Main: FrameCreateWindow() - post\n");
// Allow the 4 hardcoded slots to be configurated as empty
// TODO: this state should be reflected in the Registry/conf.ini (just as bSlotEmpty[7] is)
// TODO: support bSlotEmpty[] for slots: 0,4,5
if (g_cmdLine.bSlotEmpty[SLOT1])
g_CardMgr.Remove(SLOT1);
if (g_cmdLine.bSlotEmpty[SLOT2])
@ -1998,7 +2000,7 @@ static void RepeatInitialization(void)
g_cmdLine.szImageName_harddisk[HARDDISK_1] = g_cmdLine.szImageName_harddisk[HARDDISK_2] = NULL; // Don't insert on a restart
if (g_cmdLine.bSlotEmpty[7])
HD_SetEnabled(false);
UnplugHardDiskControllerCard();
}
MemInitialize();