Revert previous fa04797:

. again '-s7 empty' doesn't persist this state to Registry/conf.ini
. consistent with other '-sn empty' cmds
This commit is contained in:
tomcw 2020-05-29 21:58:53 +01:00
parent fa047974ec
commit 4f340fa264
1 changed files with 2 additions and 2 deletions

View File

@ -1964,7 +1964,7 @@ 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)
// NB. this state is not persisted to the Registry/conf.ini (just as '-s7 empty' isn't)
// TODO: support bSlotEmpty[] for slots: 0,4,5
if (g_cmdLine.bSlotEmpty[SLOT1])
g_CardMgr.Remove(SLOT1);
@ -2000,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])
UnplugHardDiskControllerCard();
HD_SetEnabled(false); // Disable HDD controller, but don't persist this to Registry/conf.ini (consistent with other '-sn empty' cmds)
}
MemInitialize();