X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsnapshot.h;h=f2be9c19630e804b0178e1511b400acf26e92cdb;hb=38212569c2f58866417f26e9c813ed8b23c5b2c4;hp=ef114dd43605eb843a62824ea10fef67132e76b8;hpb=9fa601d400aa71f38fcdc19eaf107f42e0d2a2a3;p=rocksndiamonds.git diff --git a/src/libgame/snapshot.h b/src/libgame/snapshot.h index ef114dd4..f2be9c19 100644 --- a/src/libgame/snapshot.h +++ b/src/libgame/snapshot.h @@ -4,7 +4,7 @@ // (c) 1995-2014 by Artsoft Entertainment // Holger Schemel // info@artsoft.org -// http://www.artsoft.org/ +// https://www.artsoft.org/ // ---------------------------------------------------------------------------- // snapshot.h // ============================================================================ @@ -16,8 +16,10 @@ #include "misc.h" -/* needed for comfortably saving engine snapshot buffers */ -#define ARGS_ADDRESS_AND_SIZEOF(x) (&(x)), (sizeof(x)) +#define SNAPSHOT_MEMORY_DEFAULT (512 * 1024 * 1024) + +// needed for comfortably saving engine snapshot buffers +#define ARGS_ADDRESS_AND_SIZEOF(x) (&(x)), (sizeof(x)) struct SnapshotNodeInfo { @@ -31,13 +33,13 @@ void SaveSnapshotBuffer(ListNode **, void *, int); void LoadSnapshotBuffers(ListNode *); void FreeSnapshotBuffers(ListNode *); -void SaveSnapshotSingle(); -void SaveSnapshotToList(); -boolean LoadSnapshotSingle(); -boolean LoadSnapshotFromList_Older(); -boolean LoadSnapshotFromList_Newer(); -boolean CheckSnapshotList(); -void FreeSnapshotSingle(); -void FreeSnapshotList(); +void SaveSnapshotSingle(ListNode *); +void SaveSnapshotToList(ListNode *); +boolean LoadSnapshotSingle(void); +boolean LoadSnapshotFromList_Older(int); +boolean LoadSnapshotFromList_Newer(int); +boolean CheckSnapshotList(void); +void FreeSnapshotSingle(void); +void FreeSnapshotList(void); -#endif /* SNAPSHOT_H */ +#endif // SNAPSHOT_H