mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-19 19:33:03 +00:00
685b93f387
Support these new cards in slots 3, 4 or 5; based on code from Lukazi. - extend Configuration's Input prop sheet page. - add save/load snapshot for both cards. - add command line switch for alt controller type (for SNES MAX card). Change to using Registry's 'Configuration\Slot 3' for slot 3 cards (Uthernet, 4Play & SNES MAX). Update help doc.
71 lines
2.2 KiB
C++
71 lines
2.2 KiB
C++
#pragma once
|
|
|
|
#include "../Core.h"
|
|
#include "../CardManager.h"
|
|
#include "../CPU.h"
|
|
#include "../DiskImage.h" // Disk_Status_e
|
|
#include "../Harddisk.h" // HD_CardIsEnabled()
|
|
#include "../Interface.h" // VideoRefreshRate_e, GetVideoRefreshRate()
|
|
#include "../Tfe/tfe.h"
|
|
|
|
class CConfigNeedingRestart
|
|
{
|
|
public:
|
|
CConfigNeedingRestart(UINT bEnableTheFreezesF8Rom = false) :
|
|
m_Apple2Type( GetApple2Type() ),
|
|
m_CpuType( GetMainCpu() ),
|
|
m_uSaveLoadStateMsg(0),
|
|
m_videoRefreshRate( GetVideo().GetVideoRefreshRate() )
|
|
{
|
|
m_bEnableHDD = HD_CardIsEnabled();
|
|
m_bEnableTheFreezesF8Rom = bEnableTheFreezesF8Rom;
|
|
memset(&m_Slot, 0, sizeof(m_Slot));
|
|
m_SlotAux = CT_Empty;
|
|
m_Slot[SLOT4] = GetCardMgr().QuerySlot(SLOT4);
|
|
m_Slot[SLOT5] = GetCardMgr().QuerySlot(SLOT5);
|
|
m_Slot[SLOT7] = GetCardMgr().QuerySlot(SLOT7);
|
|
|
|
m_tfeInterface = get_tfe_interface();
|
|
}
|
|
|
|
const CConfigNeedingRestart& operator= (const CConfigNeedingRestart& other)
|
|
{
|
|
m_Apple2Type = other.m_Apple2Type;
|
|
m_CpuType = other.m_CpuType;
|
|
memcpy(m_Slot, other.m_Slot, sizeof(m_Slot));
|
|
m_bEnableHDD = other.m_bEnableHDD;
|
|
m_tfeInterface = other.m_tfeInterface;
|
|
m_bEnableTheFreezesF8Rom = other.m_bEnableTheFreezesF8Rom;
|
|
m_uSaveLoadStateMsg = other.m_uSaveLoadStateMsg;
|
|
m_videoRefreshRate = other.m_videoRefreshRate;
|
|
return *this;
|
|
}
|
|
|
|
bool operator== (const CConfigNeedingRestart& other) const
|
|
{
|
|
return m_Apple2Type == other.m_Apple2Type &&
|
|
m_CpuType == other.m_CpuType &&
|
|
memcmp(m_Slot, other.m_Slot, sizeof(m_Slot)) == 0 &&
|
|
m_bEnableHDD == other.m_bEnableHDD &&
|
|
m_tfeInterface == other.m_tfeInterface &&
|
|
m_bEnableTheFreezesF8Rom == other.m_bEnableTheFreezesF8Rom &&
|
|
m_uSaveLoadStateMsg == other.m_uSaveLoadStateMsg &&
|
|
m_videoRefreshRate == other.m_videoRefreshRate;
|
|
}
|
|
|
|
bool operator!= (const CConfigNeedingRestart& other) const
|
|
{
|
|
return !operator==(other);
|
|
}
|
|
|
|
eApple2Type m_Apple2Type;
|
|
eCpuType m_CpuType;
|
|
SS_CARDTYPE m_Slot[NUM_SLOTS]; // 0..7
|
|
SS_CARDTYPE m_SlotAux;
|
|
bool m_bEnableHDD;
|
|
std::string m_tfeInterface;
|
|
UINT m_bEnableTheFreezesF8Rom;
|
|
UINT m_uSaveLoadStateMsg;
|
|
VideoRefreshRate_e m_videoRefreshRate;
|
|
};
|