Deltarune script viewer

← back to main script listing

gml_Object_obj_savedata_error_Other_72

(view raw script w/o annotations or w/e)
1
if (ds_map_find_value(async_load, "id") == global.savedata_async_id)
2
{
3
    global.savedata_async_id = -1;
4
    if (os_type == os_switch)
5
        switch_save_data_commit();
6
    buffer_delete(global.savedata_buffer);
7
    global.savedata_buffer = undefined;
8
    game_restart_true();
9
}