mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-15 09:05:39 +00:00
12d1a0e1fe
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().
29 lines
648 B
C++
29 lines
648 B
C++
#pragma once
|
|
|
|
#include "Card.h"
|
|
|
|
class SAMCard : public Card
|
|
{
|
|
public:
|
|
SAMCard(UINT slot) :
|
|
Card(CT_SAM, slot)
|
|
{
|
|
}
|
|
virtual ~SAMCard(void) {}
|
|
|
|
virtual void Destroy(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 const std::string& GetSnapshotCardName(void);
|
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
|
|
|
private:
|
|
// no state
|
|
};
|