Remove fixes file when a game is uninstalled #3398
Merged
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.
In #3335 we are adding the feature to install known winetricks fixes. That downloads the
fixes
file from the https://github.com/Heroic-Games-Launcher/known-fixes repo during the installation of a game.The problem is that we have no way or removing the file once the winetricks fix is not needed anymore, so if a game is downloaded today and a fix is not needed anymore in 2 months, if I install the game it will still run the winetricks commands.
This PR changes that so when a game is uninstalled, if a fixes file exists it gets deleted. That way, if we install the game in a few months and the fix is not needed, it won't be in the
known-fixes
repo and we don't download anything.I did a small refactor cause I needed that map from runner to store and it was already defined in 3 other places
Use the following Checklist if you have changed something on the Backend or Frontend: