mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix recovery mode lock file not being cleared on import/export
This commit is contained in:
parent
1753893c60
commit
d776682741
1 changed files with 6 additions and 0 deletions
|
|
@ -4662,6 +4662,12 @@ void Main::cleanup(bool p_force) {
|
||||||
ResourceSaver::remove_custom_savers();
|
ResourceSaver::remove_custom_savers();
|
||||||
PropertyListHelper::clear_base_helpers();
|
PropertyListHelper::clear_base_helpers();
|
||||||
|
|
||||||
|
// Remove the lock file if the engine exits successfully. Some automated processes such as
|
||||||
|
// --export/--import can bypass and/or finish faster than the existing check to remove the lock file.
|
||||||
|
if (OS::get_singleton()->get_exit_code() == EXIT_SUCCESS) {
|
||||||
|
OS::get_singleton()->remove_lock_file();
|
||||||
|
}
|
||||||
|
|
||||||
// Flush before uninitializing the scene, but delete the MessageQueue as late as possible.
|
// Flush before uninitializing the scene, but delete the MessageQueue as late as possible.
|
||||||
message_queue->flush();
|
message_queue->flush();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue