Update from AW's master.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
de2071476e
commit
27904182c4
2 changed files with 3 additions and 31 deletions
|
@ -123,11 +123,7 @@ void InitialiseEmulator()
|
||||||
MemInitialize();
|
MemInitialize();
|
||||||
|
|
||||||
CardManager & cardManager = GetCardMgr();
|
CardManager & cardManager = GetCardMgr();
|
||||||
cardManager.GetDisk2CardMgr().Reset();
|
cardManager.Reset(true);
|
||||||
if (cardManager.QuerySlot(SLOT7) == CT_GenericHDD)
|
|
||||||
{
|
|
||||||
dynamic_cast<HarddiskInterfaceCard&>(cardManager.GetRef(SLOT7)).Reset(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
Snapshot_Startup();
|
Snapshot_Startup();
|
||||||
|
|
||||||
|
@ -137,39 +133,15 @@ void InitialiseEmulator()
|
||||||
void DestroyEmulator()
|
void DestroyEmulator()
|
||||||
{
|
{
|
||||||
CardManager & cardManager = GetCardMgr();
|
CardManager & cardManager = GetCardMgr();
|
||||||
|
cardManager.Destroy();
|
||||||
|
|
||||||
Snapshot_Shutdown();
|
Snapshot_Shutdown();
|
||||||
CMouseInterface* pMouseCard = cardManager.GetMouseCard();
|
|
||||||
if (pMouseCard)
|
|
||||||
{
|
|
||||||
pMouseCard->Reset();
|
|
||||||
}
|
|
||||||
MemDestroy();
|
MemDestroy();
|
||||||
|
|
||||||
SpkrDestroy();
|
SpkrDestroy();
|
||||||
MB_Destroy();
|
MB_Destroy();
|
||||||
DSUninit();
|
DSUninit();
|
||||||
|
|
||||||
for (UINT i = 0; i < NUM_SLOTS; ++i)
|
|
||||||
{
|
|
||||||
switch (cardManager.QuerySlot(i))
|
|
||||||
{
|
|
||||||
case CT_GenericHDD:
|
|
||||||
dynamic_cast<HarddiskInterfaceCard&>(cardManager.GetRef(i)).Destroy();
|
|
||||||
break;
|
|
||||||
case CT_Uthernet:
|
|
||||||
dynamic_cast<Uthernet1&>(cardManager.GetRef(i)).Destroy();
|
|
||||||
break;
|
|
||||||
case CT_Uthernet2:
|
|
||||||
dynamic_cast<Uthernet2&>(cardManager.GetRef(i)).Destroy();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
PrintDestroy();
|
PrintDestroy();
|
||||||
CpuDestroy();
|
CpuDestroy();
|
||||||
DebugDestroy();
|
DebugDestroy();
|
||||||
|
|
||||||
GetCardMgr().GetDisk2CardMgr().Destroy();
|
|
||||||
RiffFinishWriteFile();
|
RiffFinishWriteFile();
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ void CSuperSerialCard::SetSerialPortName(const char* pSerialPortName)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSuperSerialCard::CommReset()
|
void CSuperSerialCard::Reset(const bool /* powerCycle */)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue