mirror of
https://github.com/mkwong98/HDNes.git
synced 2024-05-20 13:07:54 -04:00
5ae36cc2c7
Added folder for C++ code. Added shaders, user manual, wxwidget files and VS files
43 lines
573 B
C++
43 lines
573 B
C++
#pragma once
|
|
|
|
class cart
|
|
{
|
|
private:
|
|
|
|
public:
|
|
string gameName;
|
|
bool romLoaded;
|
|
|
|
Uint8 mapperID;
|
|
Uint8 chrPageCount;
|
|
Uint8 prgPageCount;
|
|
|
|
bool mirrorV;
|
|
bool scr4x;
|
|
|
|
bool useBat;
|
|
bool useTrain;
|
|
bool batChanged;
|
|
|
|
Uint8* prgROM;
|
|
Uint8* chrROM;
|
|
Uint8* chrRAM;
|
|
Uint8* batDat;
|
|
Uint8* scr4RAM;
|
|
Uint32* chrRAMAddress;
|
|
Uint32 lastPrgRead;
|
|
|
|
cart();
|
|
~cart(void);
|
|
void loadRom(string name);
|
|
void loadBat();
|
|
void saveBat();
|
|
bool getLoadState();
|
|
void clean();
|
|
|
|
void saveState(fstream* statefile);
|
|
void loadState(fstream* statefile);
|
|
|
|
};
|
|
|