mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-26 11:30:11 +00:00
Card: cleanup interface. (PR #1059)
1) Remove Init() 2) Call Reset() via CardManager 3) Call Destroy() via CardManager (only used by Disks/Harddisk) on WM_DESTROY The only "real" changes are in CSuperSerialCard: ensure destructor cleans up and remove Destroy().
This commit is contained in:
@@ -251,3 +251,25 @@ void CardManager::SaveSnapshot(YamlSaveHelper& yamlSaveHelper)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CardManager::Reset(const bool powerCycle)
|
||||
{
|
||||
for (UINT i = SLOT0; i < NUM_SLOTS; ++i)
|
||||
{
|
||||
if (m_slot[i])
|
||||
{
|
||||
m_slot[i]->Reset(powerCycle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CardManager::Destroy()
|
||||
{
|
||||
for (UINT i = SLOT0; i < NUM_SLOTS; ++i)
|
||||
{
|
||||
if (m_slot[i])
|
||||
{
|
||||
m_slot[i]->Destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user