mirror of
https://github.com/Michael-Prince-Sharpe/bsnes-classic.git
synced 2025-04-02 10:21:42 -04:00
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
class Cartridge {
|
|
public:
|
|
string name; //printable name
|
|
string fileName; //ideal file name for saving data to disk
|
|
string baseName; //physical cartridge file name
|
|
string slotAName; //Sufami Turbo slot A file name or BS-X slot file name
|
|
string slotBName; //Sufami Turbo slot B file name
|
|
bool patchApplied; //true if UPS patch was applied to image
|
|
|
|
string baseXml;
|
|
string slotAXml;
|
|
string slotBXml;
|
|
|
|
struct Information {
|
|
string name;
|
|
string region;
|
|
unsigned romSize;
|
|
unsigned ramSize;
|
|
};
|
|
|
|
bool information(const char*, Information&);
|
|
bool saveStatesSupported();
|
|
|
|
bool loadNormal(const char*);
|
|
bool loadBsxSlotted(const char*, const char*);
|
|
bool loadBsx(const char*, const char*);
|
|
bool loadSufamiTurbo(const char*, const char *, const char*);
|
|
bool loadSuperGameBoy(const char*, const char*);
|
|
void saveMemory();
|
|
void unload();
|
|
|
|
void loadCheats();
|
|
void saveCheats();
|
|
|
|
private:
|
|
bool loadCartridge(string&, string&, SNES::MappedRAM&);
|
|
bool loadMemory(const char*, const char*, SNES::MappedRAM&);
|
|
bool saveMemory(const char*, const char*, SNES::MappedRAM&);
|
|
string decodeJISX0201(const char*);
|
|
};
|
|
|
|
extern Cartridge cartridge;
|