ds_map_secure_load_buffer(buffer);
Argument | Description |
---|---|
filename | The buffer ID of the buffer to load the map data from. |
Returns: DS Map
This function will load a secure saved DS map from a buffer. You must previously have loaded the buffer into memory (using buffer_load) and then passing that into this function will return a ds map populated with the contents of the buffer. note that the buffer must have been created using the function ds_map_secure_save_buffer for this to work correctly.
var buff = buffer_load("save.dat");
map = ds_map_secure_load_buffer(buff);
buffer_delete(buff);
The above code will load a securely saved ds_map from a buffer and store its index value in a variable for future use.