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

Allow scanning of roms that do not have file extensions #5

Merged
merged 1 commit into from
Jan 7, 2024
Merged

Allow scanning of roms that do not have file extensions #5

merged 1 commit into from
Jan 7, 2024

Conversation

alextiley
Copy link
Contributor

Xbox Live Arcade roms do not have file extensions. Playnite's built-in emulator profile for Xenia supports roms without file extensions by associating the emulator profile with the dummy <none> extension.

The default emulator profile:
image

At the moment, EmuLibrary does not handle these, and so XBLA roms are ignored when a scan is executed.

See https://github.com/JosefNemec/Playnite/blob/ef9effdd273f1448f05d53c3f5eacc5448d6f1ee/source/Playnite/Emulation/Emulators/Xenia/emulator.yaml#L8 for the default emulator profile configuration.

And here's the built-in scanner: https://github.com/JosefNemec/Playnite/blob/ef9effdd273f1448f05d53c3f5eacc5448d6f1ee/source/Playnite/Emulators/Scanner.cs#L907

This pull request ensures that both single and multi-file scanners consider roms without file extensions where the emulator profile is configured with extension <none>.

Successful import:
image

@alextiley alextiley changed the title fix: allow scanning of roms that do not have file extensions Allow scanning of roms that do not have file extensions Jan 7, 2024
@psychonic
Copy link
Owner

Looks great! Thank you for this.

@psychonic psychonic merged commit ba234fb into psychonic:master Jan 7, 2024
@alextiley alextiley deleted the fix/add-support-for-roms-without-extensions branch January 7, 2024 18:05
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

2 participants