cibikle / LaSSI

LaSSI (the Last Starship Save Inspector) is a free, open source, cross-platform, fan-made tool for inspecting and editing save files for "The Last Starship" by Introversion Software (https://www.introversion.co.uk/introversion/). Cross-platform UI made possible by Eto (https://github.com/picoe/Eto)
GNU Affero General Public License v3.0
5 stars 3 forks source link

Tools - zip files for upload & analysis #69

Closed cibikle closed 10 months ago

cibikle commented 11 months ago

When the user opens a file, stash a copy. When the user saves after making changes, zip a copy with the stashed original. Make sure the zip can be accessed easily for upload and analysis.

This may need to be a future enhancement to this enhancement, but the option to auto-upload the archive (to where?) would be pretty useful.

Once prefs are implemented (#4), include options about placement, retention, and auto-upload (e.g., always, never, prompt).

cibikle commented 10 months ago

Skipping the auto-zip. The user can take care of that easily enough.

Each time a file is opened, a copy (prepended with "orig") is moved to a timestamped backup directory in the app support directory. Each time the file is saved, a copy of the saved file is moved into the same directory (with an incrementing prepended int). If a new file is loaded or the app is quit without additional saves being created and moved into the backup directory, it is removed.

The app support directory can be easily access by a new File menu item called "Browse backups".