| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
. |
| 6 |
|
| 7 |
|
| 8 |
#ifndef restorestate_h |
| 9 |
#define restorestate_h |
| 10 |
|
| 11 |
#include <stdlib.h> |
| 12 |
|
| 13 |
struct SavedState { |
| 14 |
uint8_t Flags[128]; |
| 15 |
uint8_t ObjectLocations[256]; |
| 16 |
struct SavedState *previousState; |
| 17 |
struct SavedState *nextState; |
| 18 |
}; |
| 19 |
|
| 20 |
void SaveUndo(void); |
| 21 |
void RestoreUndo(int game); |
| 22 |
void RamSave(int game); |
| 23 |
void RamLoad(void); |
| 24 |
struct SavedState *SaveCurrentState(void); |
| 25 |
void RestoreState(struct SavedState *state); |
| 26 |
void RecoverFromBadRestore(struct SavedState *state); |
| 27 |
|
| 28 |
extern struct SavedState *InitialState; |
| 29 |
|
| 30 |
#endif |