Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented auto backups of project data #813

Merged
merged 1 commit into from Apr 9, 2022

Conversation

abvadabra
Copy link
Sponsor Contributor

@abvadabra abvadabra commented Apr 9, 2022

This PR implements simple data recovering options in case of editor crashes, power outages, etc. Implemented functionality is very similiar to data recovering options in Blender and will be familiar to it's users.

I've added Recover menu which providers two options:

  • Recover Last Session.
    Open efk_quit.efkbac file which is saved in Temp directory when editor is closed under normal operation. This option allows to recover project which was lost when you accidentally closed editor and didn't save changes. If such file is not found an error will be shown.
  • Recover Auto Save
    Allows user to open Auto Saved files from Temp directory. Auto Saved files will start with efk_autosave and will have efkbac extension. These files are saved automatically with interval configured in options menu (2 minutes by default). If that interval parameter is set to 0 then auto saves will be disabled.

Files with efkbac extensions are simply efkefc files with one additional property BackupOriginalPath written in their editor data. This property is used to correcty recover project's path when backup is loaded.

I've added strings translation in spanish and japanese files, but once again, as I don't speak these languages you may want to rewrite these.

…nd auto backup on editor close. Implemented recover menu which allows to load these backups.
@durswd durswd merged commit fbb336f into effekseer:master Apr 9, 2022
@durswd
Copy link
Collaborator

durswd commented Apr 9, 2022

It's cool! Thank you

@abvadabra
Copy link
Sponsor Contributor Author

Glad you liked the idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants