X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsnapshot.h;fp=src%2Flibgame%2Fsnapshot.h;h=706fc0549f96c0bd4a1854e87966d117f4eddfe8;hb=f926e522aef77158e0011ae5ad2cf8805509d6d1;hp=0000000000000000000000000000000000000000;hpb=4f9e14eb7715eb000d6a750f9734b8dcc521923f;p=rocksndiamonds.git diff --git a/src/libgame/snapshot.h b/src/libgame/snapshot.h new file mode 100644 index 00000000..706fc054 --- /dev/null +++ b/src/libgame/snapshot.h @@ -0,0 +1,36 @@ +/*********************************************************** +* Artsoft Retro-Game Library * +*----------------------------------------------------------* +* (c) 1995-2006 Artsoft Entertainment * +* Holger Schemel * +* Detmolder Strasse 189 * +* 33604 Bielefeld * +* Germany * +* e-mail: info@artsoft.org * +*----------------------------------------------------------* +* snapshot.h * +***********************************************************/ + +#ifndef SNAPSHOT_H +#define SNAPSHOT_H + +#include "system.h" +#include "misc.h" + + +/* needed for comfortably saving engine snapshot buffers */ +#define ARGS_ADDRESS_AND_SIZEOF(x) (&(x)), (sizeof(x)) + +struct EngineSnapshotNodeInfo +{ + void *buffer_orig; + void *buffer_copy; + int size; +}; + + +void SaveEngineSnapshotBuffer(void *buffer, int size); +void LoadEngineSnapshotBuffers(); +void FreeEngineSnapshotBuffers(); + +#endif /* SNAPSHOT_H */