#include <SRAMFile.hh>
Definition at line 37 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 |
char * | data |
int | current |
SaveSlot * | games [3] |
|
Constructor for an SRAMFile object.
Definition at line 39 of file SRAMFile.cc. |
|
Destructor for an SRAMFile object.
Definition at line 44 of file SRAMFile.cc. |
|
Gets the current game.
Definition at line 66 of file SRAMFile.cc. |
|
Checks if this SRAM file has been modified.
Definition at line 52 of file SRAMFile.cc. |
|
Checks if a particular game is valid.
Definition at line 87 of file SRAMFile.cc. |
|
Loads the SRAM data from a file.
Definition at line 132 of file SRAMFile.cc. |
|
Saves the SRAM data to a particular file.
Definition at line 95 of file SRAMFile.cc. |
|
Saves the SRAM data to the file it was opened from.
Definition at line 91 of file SRAMFile.cc. |
|
Sets the current game.
Definition at line 74 of file SRAMFile.cc. |
|
Definition at line 110 of file SRAMFile.hh. |
|
Definition at line 108 of file SRAMFile.hh. |
|
Definition at line 107 of file SRAMFile.hh. |
|
Definition at line 111 of file SRAMFile.hh. |