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

FileSystem: Add a case-insensitive match for nvm and mec file loading. #12050

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

F0bes
Copy link
Member

@F0bes F0bes commented Nov 29, 2024

Description of Changes

Adds some open file methods to the filesystem abstraction that will fallback to case-insensitive matching.

Rationale behind Changes

By default PCSX2 assumes that the nvm and mec files will be [rom0 filename].nvm and [rom0 filename].mec
On case-insensitive filesystems this is fine, but there is a difference in behaviour when you are on case-sensitive filesystems when using extensions such as NVM and MEC.

There really shouldn't be any good reason why you have these extensions capitalized, but this PR addresses the difference in behaviour.

Suggested Testing Steps

The code is the same for Windows and MacOS platforms, so that should be fine.
On Linux and MacOS platforms, rename the nvm file to something with a different case. bios.nvm = bios.NVM and boot the BIOS and see if the first-time setup menu shows (or look in the console to see if there is an error message regarding opening the NVM file).

@github-actions github-actions bot added the CDVD label Nov 29, 2024
@F0bes F0bes force-pushed the filesystem-caseinsensitive branch from bd5ecfd to cebf9f9 Compare December 11, 2024 21:22
@F0bes F0bes merged commit a60489b into master Dec 12, 2024
22 checks passed
@lightningterror lightningterror deleted the filesystem-caseinsensitive branch January 3, 2025 00:38
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.

3 participants