1 // ============================================================================
2 // Artsoft Retro-Game Library
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
7 // https://www.artsoft.org/
8 // ----------------------------------------------------------------------------
10 // ============================================================================
19 #define SNAPSHOT_MEMORY_DEFAULT (512 * 1024 * 1024)
21 // needed for comfortably saving engine snapshot buffers
22 #define ARGS_ADDRESS_AND_SIZEOF(x) (&(x)), (sizeof(x))
24 struct SnapshotNodeInfo
32 void SaveSnapshotBuffer(ListNode **, void *, int);
33 void LoadSnapshotBuffers(ListNode *);
34 void FreeSnapshotBuffers(ListNode *);
36 void SaveSnapshotSingle(ListNode *);
37 void SaveSnapshotToList(ListNode *);
38 boolean LoadSnapshotSingle(void);
39 boolean LoadSnapshotFromList_Older(int);
40 boolean LoadSnapshotFromList_Newer(int);
41 boolean CheckSnapshotList(void);
42 void FreeSnapshotSingle(void);
43 void FreeSnapshotList(void);