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: Correct extension check #12076

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

TheLastRar
Copy link
Contributor

Description of Changes

This check would fail if the returned extension was .chd
Additionally, GetExtension would return the extension without ., so no file would fail

Rationale behind Changes

This issue only impacts chd files with parent chd files
When searching for the parent chd, we would trying to examine every file as a chd, instead of only examining chd files

Suggested Testing Steps

Test CHD files with parent CHD files and see if they still open

Such files can be created with chdman createdvd -i "disc.iso" -op "parent.chd" -o "disc.chd"

I'll note that chdman 0.271 and 0.272 currently has issues creating such files for PS2 sized games, so use an older version.

@github-actions github-actions bot added the CDVD label Dec 9, 2024
@F0bes F0bes merged commit 6574835 into PCSX2:master Dec 12, 2024
12 checks passed
@TheLastRar TheLastRar deleted the chd-fix-ext-check branch December 12, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants