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

"Repair" option for game caches #9

Open
yungcomputerchair opened this issue Feb 25, 2025 · 0 comments
Open

"Repair" option for game caches #9

yungcomputerchair opened this issue Feb 25, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@yungcomputerchair
Copy link
Member

yungcomputerchair commented Feb 25, 2025

Since the game client itself does no hash checking or validation, it is not able to detect when a "complete" (accompanied by an __info file) asset bundle is corrupt.

We initially decided that having a game cache repair feature was out of scope because the work that would be needed to identify the compressed bundle for a game cache file, download that bundle, then extract it, would be non-trivial.

However, the game client will redownload files that are missing or not "complete", meaning there is a way forward of just deleting the files that were identified by ffbuildtool as corrupt and allowing the client to download fresh copies.

The implementation here should be relatively simple. The frontend already contains a list of all game cache files along with flags for corrupted/missing. We could have a new API that passes a list of the corrupted files to the backend and then delete them with std::fs.

@yungcomputerchair yungcomputerchair added enhancement New feature or request good first issue Good for newcomers labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant