mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-19 19:33:03 +00:00
769d4c6927
Support 2nd Disk][ in slot-5, via command line: - -s5 diskii - -s5d1 \<imagefile\> - -s5d2 \<imagefile\> NB. there's currently no Configuration UI support, except the Drive icons' tooltips show what's in slot-5 & slot-6 (for drive-n). So there's no way to eject the disks or insert new disks. The use-case I'm supporting it Wasteland which just has the 4 disks in the 4 drives. Improved card management: - Added `class Card` (in Card.h) which all other cards (that exist as classes) derive from (eg. LC,SSC,Mouse,Disk2). - Added `class CardManager` (in CardManager.cpp\h) which now manages the 8 slots (and aux slot). - Added `class Disk2CardManager` (in Disk2CardManager.cpp\h) which provides methods for operations that act on all Disk2 instances at the same time. - Currently limited to just 1x SSC and 1x Mouse card (why would you need more?). This simplifies things, meaning there's no need to have dedicated SSCManager / MouseCardManager objects. - Currently the 2nd Disk2 card can only be put into slot-5. This limitation is just due to the complexity of the Configuration UI. Having a more general drop-down per slot UI would remove this limitation.
66 lines
1.5 KiB
C++
66 lines
1.5 KiB
C++
#pragma once
|
|
|
|
enum SS_CARDTYPE
|
|
{
|
|
CT_Empty = 0,
|
|
CT_Disk2, // Apple Disk][
|
|
CT_SSC, // Apple Super Serial Card
|
|
CT_MockingboardC, // Soundcard
|
|
CT_GenericPrinter,
|
|
CT_GenericHDD, // Hard disk
|
|
CT_GenericClock,
|
|
CT_MouseInterface,
|
|
CT_Z80,
|
|
CT_Phasor, // Soundcard
|
|
CT_Echo, // Soundcard
|
|
CT_SAM, // Soundcard: Software Automated Mouth
|
|
CT_80Col, // 80 column card (1K)
|
|
CT_Extended80Col, // Extended 80-col card (64K)
|
|
CT_RamWorksIII, // RamWorksIII (up to 8MB)
|
|
CT_Uthernet,
|
|
CT_LanguageCard, // Apple][ or ][+ in slot-0
|
|
CT_LanguageCardIIe, // Apple//e LC instance (not a card)
|
|
CT_Saturn128K, // Saturn 128K (but may be populated with less RAM, in multiples of 16K)
|
|
};
|
|
|
|
enum SLOTS { SLOT0=0, SLOT1, SLOT2, SLOT3, SLOT4, SLOT5, SLOT6, SLOT7 };
|
|
|
|
class Card
|
|
{
|
|
public:
|
|
Card(void) : m_type(CT_Empty) {}
|
|
Card(SS_CARDTYPE type) : m_type(type) {}
|
|
virtual ~Card(void) {}
|
|
|
|
virtual void Init(void) = 0;
|
|
virtual void Reset(const bool powerCycle) = 0;
|
|
SS_CARDTYPE QueryType(void) { return m_type; }
|
|
|
|
private:
|
|
SS_CARDTYPE m_type;
|
|
};
|
|
|
|
//
|
|
|
|
class EmptyCard : public Card
|
|
{
|
|
public:
|
|
EmptyCard(void) {}
|
|
virtual ~EmptyCard(void) {}
|
|
|
|
virtual void Init(void) {};
|
|
virtual void Reset(const bool powerCycle) {};
|
|
};
|
|
|
|
//
|
|
|
|
class DummyCard : public Card // For cards that currently can't be instantiated (ie. don't exist as a class)
|
|
{
|
|
public:
|
|
DummyCard(SS_CARDTYPE type) : Card(type) {}
|
|
virtual ~DummyCard(void) {}
|
|
|
|
virtual void Init(void) {};
|
|
virtual void Reset(const bool powerCycle) {};
|
|
};
|