HDNes/hdnes/cart.h
mkwong98 5ae36cc2c7 Add the rest of source code and doc
Added folder for C++ code. Added shaders, user manual, wxwidget files
and VS files
2014-06-25 22:40:29 +08:00

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);
};