#include <SRAMFile.hh>
Definition at line 40 of file SRAMFile.hh.
Public Member Functions | |
SRAMFile (wxString &filename) | |
Constructor for an SRAMFile object. | |
~SRAMFile () | |
Destructor for an SRAMFile object. | |
bool | isModified () |
Checks if this SRAM file has been modified. | |
SaveSlot * | getCurrentGame () |
Gets the current game. | |
bool | setCurrentGame (unsigned int current) |
Sets the current game. | |
bool | isValidGame (int game) |
Checks if a particular game is valid. | |
bool | save () |
Saves the SRAM data to the file it was opened from. | |
bool | save (wxString &filename) |
Saves the SRAM data to a particular file. | |
Private Member Functions | |
void | load (wxString &filename) |
Loads the SRAM data from a file. | |
Private Attributes | |
wxString * | file |
SaveSlot * | games [3] |
int | current |
char * | data |
SRAMFile::SRAMFile | ( | wxString & | filename | ) |
Constructor for an SRAMFile object.
filename | The SRAM file to use. |
Definition at line 43 of file SRAMFile.cc.
SRAMFile::~SRAMFile | ( | ) |
void SRAMFile::load | ( | wxString & | filename | ) | [private] |
Loads the SRAM data from a file.
filename | The file to load SRAM data from. |
Definition at line 136 of file SRAMFile.cc.
bool SRAMFile::isModified | ( | ) |
Checks if this SRAM file has been modified.
Definition at line 56 of file SRAMFile.cc.
SaveSlot * SRAMFile::getCurrentGame | ( | ) |
bool SRAMFile::setCurrentGame | ( | unsigned int | current | ) |
Sets the current game.
current | The new game. |
Definition at line 78 of file SRAMFile.cc.
bool SRAMFile::isValidGame | ( | int | game | ) |
Checks if a particular game is valid.
game | The game to check. |
Definition at line 91 of file SRAMFile.cc.
bool SRAMFile::save | ( | ) |
Saves the SRAM data to the file it was opened from.
Definition at line 95 of file SRAMFile.cc.
bool SRAMFile::save | ( | wxString & | filename | ) |
Saves the SRAM data to a particular file.
filename | The file to save to. |
Definition at line 99 of file SRAMFile.cc.
wxString* emuWorks::SRAMFile::file [private] |
Definition at line 42 of file SRAMFile.hh.
SaveSlot* emuWorks::SRAMFile::games[3] [private] |
Definition at line 43 of file SRAMFile.hh.
int emuWorks::SRAMFile::current [private] |
Definition at line 44 of file SRAMFile.hh.
char* emuWorks::SRAMFile::data [private] |
Definition at line 45 of file SRAMFile.hh.