#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 |
char * | data |
int | current |
SaveSlot * | games [3] |
|
Constructor for an SRAMFile object.
Definition at line 42 of file SRAMFile.cc. |
|
Destructor for an SRAMFile object.
Definition at line 47 of file SRAMFile.cc. |
|
Gets the current game.
Definition at line 69 of file SRAMFile.cc. |
|
Checks if this SRAM file has been modified.
Definition at line 55 of file SRAMFile.cc. |
|
Checks if a particular game is valid.
Definition at line 90 of file SRAMFile.cc. |
|
Loads the SRAM data from a file.
Definition at line 135 of file SRAMFile.cc. |
|
Saves the SRAM data to a particular file.
Definition at line 98 of file SRAMFile.cc. |
|
Saves the SRAM data to the file it was opened from.
Definition at line 94 of file SRAMFile.cc. |
|
Sets the current game.
Definition at line 77 of file SRAMFile.cc. |
|
Definition at line 113 of file SRAMFile.hh. |
|
Definition at line 111 of file SRAMFile.hh. |
|
Definition at line 110 of file SRAMFile.hh. |
|
Definition at line 114 of file SRAMFile.hh. |