#include <SRAMFile.hh>
Definition at line 37 of file SRAMFile.hh.
Public Member Functions | |
SRAMFile (const wxString &filename) throw (InvalidSRAMException) | |
Creates a new SRAMFile from a SAV file. | |
~SRAMFile () | |
Destructor for an SRAMFile. | |
SaveSlot * | getSaveSlot (int game) |
Gets one of the SaveSlots in this SRAMFile. | |
bool | isModified () const |
Checks if this SRAMFile has been modified. | |
bool | isValid (int slot) const |
Queries the validity of one of the three SaveSlots. | |
void | save (const wxString &filename) throw (FileIOException) |
Saves the SRAM data to disk. | |
Private Member Functions | |
void | verifyChecksum () |
Verifies the checksums of all three SaveSlots. | |
Private Attributes | |
SaveSlot * | saveslot [3] |
char | sram [SRAM_SIZE] |
bool | valid [3] |
|
Creates a new SRAMFile from a SAV file.
Definition at line 36 of file SRAMFile.cc. |
|
Destructor for an SRAMFile.
Definition at line 81 of file SRAMFile.cc. |
|
Gets one of the SaveSlots in this SRAMFile.
Definition at line 98 of file SRAMFile.hh. |
|
Checks if this SRAMFile has been modified.
Definition at line 87 of file SRAMFile.cc. |
|
Queries the validity of one of the three SaveSlots.
Definition at line 99 of file SRAMFile.hh. |
|
Saves the SRAM data to disk.
Definition at line 93 of file SRAMFile.cc. |
|
Verifies the checksums of all three SaveSlots.
Definition at line 138 of file SRAMFile.cc. |
|
Definition at line 39 of file SRAMFile.hh. |
|
Definition at line 40 of file SRAMFile.hh. |
|
Definition at line 41 of file SRAMFile.hh. |