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

Correctly check for SDL tags and write tags to config after successful verification #584

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

loathingKernel
Copy link
Contributor

@loathingKernel loathingKernel commented Jul 27, 2023

If a game has a __required SDL which is an empty string will fail verification because the check for building the list of hashes will fail, implying that the whole game including all the SDLs will be validated.

At the same time, if we are importing a game using a config file that doesn't specify the install_tags for such a game, the install tags won't be saved due to calling an early exit(0).

These two issues combined can cause a verification, repair, verification loop. This commit addresses both of those issues.

Example game: Fallout 3

Related conversation on Discord:
https://discord.com/channels/695233346627698689/695234626582609940/1084939380713594924

If a game has a `__required` SDL which is an empty string will fail verification
because the check for building the list of hashes will fail, implying that the
whole game including all the SDLs will be validated.

At the same time, if we are importing a game using a config file that doesn't
specify the `install_tags` for such a game, the install tags won't be saved
due to calling an early `exit(0)`.

These two issues combined can cause a verification, repair, verification loop.
This commit addresses both of those issues.

Related convertation on Discord:
https://discord.com/channels/695233346627698689/695234626582609940/1084939380713594924
@loathingKernel loathingKernel changed the title [cli] Correctly check for SDLs and write tags to config after successful verification Correctly check for SDLs and write tags to config after successful verification Jul 27, 2023
@loathingKernel loathingKernel changed the title Correctly check for SDLs and write tags to config after successful verification Correctly check for SDL tags and write tags to config after successful verification Jul 27, 2023
@derrod derrod merged commit 20b121b into derrod:master Jul 28, 2023
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.

2 participants