thpj5/scripts/scr_files_save/scr_files_save.gml

6 lines
232 B
Plaintext
Raw Normal View History

function scr_files_save( _filename ){
var file = file_text_open_write( working_directory + _filename );
var output_string = json_encode( global.loaded_file );
file_text_write_string(file, output_string);
file_text_close(file);
}