X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsnapshot.h;h=41fca6407a4a185cefbaa010534d87c164113b5a;hp=44afa7b045bd2533a76fac1b0fba9916c0ec540b;hb=10406b9d6cad2b0ec7c30c71520abe2c702bccbc;hpb=abbfd55ce4b52675ea8c97b5114129ed9466b35e diff --git a/src/libgame/snapshot.h b/src/libgame/snapshot.h index 44afa7b0..41fca640 100644 --- a/src/libgame/snapshot.h +++ b/src/libgame/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 { @@ -33,11 +35,11 @@ void FreeSnapshotBuffers(ListNode *); void SaveSnapshotSingle(ListNode *); void SaveSnapshotToList(ListNode *); -boolean LoadSnapshotSingle(); +boolean LoadSnapshotSingle(void); boolean LoadSnapshotFromList_Older(int); boolean LoadSnapshotFromList_Newer(int); -boolean CheckSnapshotList(); -void FreeSnapshotSingle(); -void FreeSnapshotList(); +boolean CheckSnapshotList(void); +void FreeSnapshotSingle(void); +void FreeSnapshotList(void); -#endif /* SNAPSHOT_H */ +#endif // SNAPSHOT_H