You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-TimeTrials/scripts/save_demo.gml

16 lines
537 B

//save_demo();
if (!trial_state){
var sid = "shared/"+string(global.sta_iden);
// make folders
if (!directory_exists("shared/")) then directory_create("shared/");
if (!directory_exists(sid)) then directory_create(sid);
// open a txt for this
var file = file_text_open_write(sid+"/replay_"+global.playerhandle+"_"+string(current_time));
// write header, name, timestamp and version to txt
// finish txt
file_text_close(file);
// set trial state so this doesn't happen again
trial_state = 1;
}