Skip to content

control-center: FreeFG removal deletes the records reinstalls set aside - #134

Merged
MTSistemi merged 1 commit into
mainfrom
cc-freefg-prune-archives
Nov 15, 2026
Merged

MTSistemi merged 1 commit into
mainfrom
cc-freefg-prune-archives

Conversation

@MTSistemi

Copy link
Copy Markdown
Owner

Each reinstall of FreeFG in a game renames the previous restored record to .bc250-xefg-experimental-restored-<id> (FreeFG's install.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-experimental folder is never touched.

  • sfcc/freefg.py: archive_done_with(), prune_archives(), called at the end of remove(); 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).

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).
@MTSistemi
MTSistemi merged commit 7dbfd58 into main Nov 15, 2026
5 checks passed
@MTSistemi
MTSistemi deleted the cc-freefg-prune-archives branch November 15, 2026 15:00
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.

1 participant