Repository navigation
control-center: FreeFG removal deletes the records reinstalls set aside - #134
Merged
Merged
Conversation
Each reinstall of FreeFG in a game renames the previous restored record to .bc250-xefg-experimental-restored-<id>, so install/remove cycles pile them up in the game folder. Remove from the game now deletes those whose Restore put everything back. A record that left files installed (damaged backup), kept files the user changed, or left game settings in place still holds the true originals FreeFG reads at the next install, so it stays and is named in the output. The live .bc250-xefg-experimental folder is never touched. Tried on bc250-dev with Cyberpunk 2077: install, remove, install (one archive appears), remove (archive deleted, live record kept, Heroic entry identical).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each reinstall of FreeFG in a game renames the previous restored record to
.bc250-xefg-experimental-restored-<id>(FreeFG'sinstall.py), so install/remove cycles pile them up in the game folder.Remove from the game now deletes those whose Restore put everything back. A record that left files installed (damaged backup), kept files the user changed, or left game settings in place still holds the originals FreeFG reads at the next install (
previous_settings(),left_installed()), so it stays and is named in the output. The live.bc250-xefg-experimentalfolder is never touched.sfcc/freefg.py:archive_done_with(),prune_archives(), called at the end ofremove(); a cleanup error does not fail the removal.tests/test_cc_freefg.py: two tests (deleted vs kept records, non-matching names, the live folder).Tried on bc250-dev with Cyberpunk 2077: install, remove, install (one archive appears), remove (archive deleted, live record kept, Heroic entry byte-identical).