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

ChdFileReader: Use core_file instead of modifing chd_open_file #12075

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

TheLastRar
Copy link
Contributor

@TheLastRar TheLastRar commented Dec 9, 2024

Description of Changes

Removes the patches applied to chd_open_file, and instead uses libchdr's virtual IO API to achieve the same behaviour

Rationale behind Changes

Such patches can be missed when updating dependencies, potentially leading to difficulty updating or introduction of bugs

Additionally, this patch did not check for CHD_OPEN_TRANSFER_FILE before taking ownership, this issue, however, didn't actually impact us as we always wanted that anyway.

This could in future allow use to implement precaching ourselves, rather then relying on the (patched) implementation provided by libchdr.

Suggested Testing Steps

Test using CHD files

@github-actions github-actions bot added CDVD Dependencies Pull requests that update a dependency file labels Dec 9, 2024
@TheLastRar TheLastRar force-pushed the chd-core branch 4 times, most recently from 7899ed8 to a5c2a0d Compare December 14, 2024 14:27
@F0bes F0bes merged commit c8e1dc5 into PCSX2:master Dec 16, 2024
11 checks passed
@TheLastRar TheLastRar deleted the chd-core branch December 16, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDVD Dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants