Pixel-Composer/scripts/window_functions/window_functions.gml
2023-07-17 19:58:33 +02:00

20 lines
444 B
Plaintext

function window_close() {
var noSave = true;
for( var i = 0; i < array_length(PROJECTS); i++ ) {
var project = PROJECTS[i];
//print($"Project {filename_name_only(project)} modified: {project.modified} readonly: {project.readonly}");
if(project.modified && !project.readonly) {
var dia = dialogCall(o_dialog_exit,,,, true);
dia.project = project;
noSave = false;
}
}
if(noSave) {
PREF_SAVE();
game_end();
}
}