mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-22 09:30:15 +00:00
0b2104cc89
Add 2 virtual methods to Card to load and save snapshots.
29 lines
638 B
C++
29 lines
638 B
C++
#pragma once
|
|
|
|
#include "Card.h"
|
|
|
|
class SAMCard : public Card
|
|
{
|
|
public:
|
|
SAMCard(UINT slot) :
|
|
Card(CT_SAM, slot)
|
|
{
|
|
}
|
|
virtual ~SAMCard(void) {}
|
|
|
|
virtual void Init(void) {}
|
|
virtual void Reset(const bool powerCycle) {}
|
|
virtual void Update(const ULONG nExecutedCycles) {}
|
|
|
|
virtual void InitializeIO(LPBYTE pCxRomPeripheral);
|
|
|
|
static BYTE __stdcall IOWrite(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
|
|
|
static std::string GetSnapshotCardName(void);
|
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
|
|
|
private:
|
|
// no state
|
|
};
|