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

Add support for ignoring game assets #1713

Merged
merged 2 commits into from
Jul 3, 2024
Merged

Conversation

halgari
Copy link
Collaborator

@halgari halgari commented Jul 2, 2024

This implements #1578. The selection of files is game specific, and there should be a game specific setting for each game we support. So far this only includes SDV and the files ignored are in the Contents folder. We could extend this to also ignore .dll files in the game folder, but it is assumed that those files are more likely to be overwritten by users and the files are not large. *The setting defaults to on in the current implementation, meaning new loadouts will not have the contents of the /Content folder backed up on SDV.

This hooks into the existing Synchronizer logic and properly sets the PathIgnored flag in the Synchronizer, which was previously hardcoded as false.

Initial Game management size:
Before this PR: ~450MB
After this PR: 48MB

10% reduction in backup sizes isn't bad!

Also implements an integration test for making sure the files truely are not backed up when the setting is enabled, and are when it is disabled.

Implemented as a predicate on ALoadoutSynchronizer so any game need only override this method to take advantage of these features.

Fixes: #1578

@halgari halgari requested a review from a team July 2, 2024 16:23
fix a typeo in the comments
@halgari halgari merged commit 67aaaa7 into main Jul 3, 2024
11 checks passed
@halgari halgari deleted the ignore-for-managed-paths branch July 3, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Selective GameFiles Backup
2 participants