|
@@ -47,16 +47,16 @@ Manager::~Manager() { |
|
|
// In safe mode, delete autosave dir. |
|
|
// In safe mode, delete autosave dir. |
|
|
if (settings::safeMode) { |
|
|
if (settings::safeMode) { |
|
|
clearAutosave(); |
|
|
clearAutosave(); |
|
|
return; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Dispatch onSave to all Modules so they save their patch storage, etc. |
|
|
|
|
|
APP->engine->prepareSave(); |
|
|
|
|
|
// Save autosave if not headless |
|
|
|
|
|
if (!settings::headless) { |
|
|
|
|
|
APP->patch->saveAutosave(); |
|
|
|
|
|
|
|
|
else { |
|
|
|
|
|
// Dispatch onSave to all Modules so they save their patch storage, etc. |
|
|
|
|
|
APP->engine->prepareSave(); |
|
|
|
|
|
// Save autosave if not headless |
|
|
|
|
|
if (!settings::headless) { |
|
|
|
|
|
APP->patch->saveAutosave(); |
|
|
|
|
|
} |
|
|
|
|
|
cleanAutosave(); |
|
|
} |
|
|
} |
|
|
cleanAutosave(); |
|
|
|
|
|
|
|
|
|
|
|
delete internal; |
|
|
delete internal; |
|
|
} |
|
|
} |
|
|