add_struct(void* data,long size)
Adds a pointer to a memory area to be saved by game_save if SV_STRUCT is set.
Parameters:
data - pointer to the memory area to be saved.
size - length of the memory area to be saved, in bytes.
Remarks:
- This function 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 together with the game score.
- The function must be called before the first game_save
or game_load call. The size value must always be the same for saving and loading. The data pointer can be different. The memory areas are saved and loaded in the same order as they were added with this function.
- Up to 1000 memory areas can be marked.
Speed:
slow
See also:
game_save, game_load
► latest
version online