2012-05-06 22:14:03 +00:00
|
|
|
#pragma once
|
|
|
|
|
2014-08-13 20:30:35 +00:00
|
|
|
#include "..\AppleWin.h"
|
2016-02-14 16:01:30 +00:00
|
|
|
#include "..\CPU.h"
|
2014-08-14 16:48:38 +00:00
|
|
|
#include "..\Disk.h" // BOOL enhancedisk
|
|
|
|
#include "..\HardDisk.h" // HD_CardIsEnabled()
|
2012-05-06 22:14:03 +00:00
|
|
|
|
|
|
|
class CConfigNeedingRestart
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CConfigNeedingRestart(UINT bEnableTheFreezesF8Rom = false) :
|
2016-02-14 16:01:30 +00:00
|
|
|
m_Apple2Type( GetApple2Type() ),
|
|
|
|
m_CpuType( GetMainCpu() ),
|
2012-05-06 22:14:03 +00:00
|
|
|
m_bEnhanceDisk(enhancedisk),
|
|
|
|
m_uSaveLoadStateMsg(0)
|
|
|
|
{
|
|
|
|
m_bEnableHDD = HD_CardIsEnabled();
|
|
|
|
m_bEnableTheFreezesF8Rom = bEnableTheFreezesF8Rom;
|
|
|
|
memset(&m_Slot, 0, sizeof(m_Slot));
|
2015-04-11 21:24:54 +00:00
|
|
|
m_SlotAux = CT_Empty;
|
2012-05-06 22:14:03 +00:00
|
|
|
m_Slot[4] = g_Slot4;
|
|
|
|
m_Slot[5] = g_Slot5;
|
|
|
|
}
|
|
|
|
|
|
|
|
const CConfigNeedingRestart& operator= (const CConfigNeedingRestart& other)
|
|
|
|
{
|
|
|
|
m_Apple2Type = other.m_Apple2Type;
|
2016-02-14 16:01:30 +00:00
|
|
|
m_CpuType = other.m_CpuType;
|
2012-05-06 22:14:03 +00:00
|
|
|
memcpy(m_Slot, other.m_Slot, sizeof(m_Slot));
|
|
|
|
m_bEnhanceDisk = other.m_bEnhanceDisk;
|
|
|
|
m_bEnableHDD = other.m_bEnableHDD;
|
|
|
|
m_bEnableTheFreezesF8Rom = other.m_bEnableTheFreezesF8Rom;
|
|
|
|
m_uSaveLoadStateMsg = other.m_uSaveLoadStateMsg;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool operator== (const CConfigNeedingRestart& other) const
|
|
|
|
{
|
|
|
|
return m_Apple2Type == other.m_Apple2Type &&
|
2016-02-14 16:01:30 +00:00
|
|
|
m_CpuType == other.m_CpuType &&
|
2012-05-06 22:14:03 +00:00
|
|
|
memcmp(m_Slot, other.m_Slot, sizeof(m_Slot)) == 0 &&
|
|
|
|
m_bEnhanceDisk == other.m_bEnhanceDisk &&
|
|
|
|
m_bEnableHDD == other.m_bEnableHDD &&
|
|
|
|
m_bEnableTheFreezesF8Rom == other.m_bEnableTheFreezesF8Rom &&
|
|
|
|
m_uSaveLoadStateMsg == other.m_uSaveLoadStateMsg;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool operator!= (const CConfigNeedingRestart& other) const
|
|
|
|
{
|
|
|
|
return !operator==(other);
|
|
|
|
}
|
|
|
|
|
|
|
|
eApple2Type m_Apple2Type;
|
2016-02-14 16:01:30 +00:00
|
|
|
eCpuType m_CpuType;
|
2012-05-06 22:14:03 +00:00
|
|
|
SS_CARDTYPE m_Slot[NUM_SLOTS]; // 0..7
|
2015-04-11 21:24:54 +00:00
|
|
|
SS_CARDTYPE m_SlotAux;
|
2012-05-06 22:14:03 +00:00
|
|
|
BOOL m_bEnhanceDisk;
|
|
|
|
bool m_bEnableHDD;
|
|
|
|
UINT m_bEnableTheFreezesF8Rom;
|
|
|
|
UINT m_uSaveLoadStateMsg;
|
|
|
|
};
|