Debian Codegraph @

terps/taylor/restorestate.h

raw symbols SCIP
1 //
2 // restorestate.h
3 // Part of TaylorMade, an interpreter for Adventure Soft UK games
4 //
5 // Created by Petter Sjölund on 2022-01-10.
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 /* restorestate_h */