add_struct(void* data,long size)
Adds a pointer to a memory area to be saved by game_save if SV_STRUCTis set.
Parameters:
data - pointer to the memory area to be saved.
size - length of the memory area to be saved, in bytes.
Remarks:
- This instruction is intended for external languages and thus uses
long instead of var. It can be used to mark memory areas or variables
that should be saved with the game score.
- The instruction must be called before the first game_save instruction.
- Up to 1000 memory areas can be marked.
Speed:
slow
See also:
game_save, game_load