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

Improve builtin extraction detection and QoL #2865

Merged

Conversation

Archez
Copy link
Contributor

@Archez Archez commented May 10, 2023

This PR aims to address a few bugs and quality of life improvements for the built in extraction flow:

There was a bug where if a rom was auto detected in the folder, but you select "Find rom", the current rom size is updated, but the file stream is not cleared, so nothing happens when reading the new rom data, and instead the old detected rom data is still stored. This will either lead to incorrect CRC errors, or the wrong XML set is used in ZAPD causing a crash.

To address this, the file stream is now being cleared and closed properly every time a rom is read.

Manual selection was also not converting the rom data to BigEndian, which would cause CRC errors. Now all rom data no matter which path your take is converted to BE.

The quality of life changes added now allow the ability to search for both game types, or specifically vanilla or MQ. This comes into play when generating OTRs back to back, so which ever you generate first, the next run through will filter for the opposite game type.

The new flow is now:
No OTRs on launch -> prompt to generate -> auto detect all roms -> detect which game type was generated first -> prompt for generating a second OTR -> restrict auto detection/manual selection to the opposite type

When the search mode is restrict, if the use goes the manual selection route and selects the wrong game type, a new prompt will appear indicating as such, and ask to select again.

image

Build Artifacts

@leggettc18 leggettc18 merged commit c70bdb7 into HarbourMasters:develop-spock May 10, 2023
7 checks passed
@Archez Archez deleted the improve-builtin-extraction branch May 11, 2023 03:14
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.

None yet

3 participants