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

Add RealArcade detection #300

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

TheRogueArchivist
Copy link
Collaborator

No description provided.

@TheRogueArchivist
Copy link
Collaborator Author

Fixes #280

Copy link
Collaborator

@mnadareski mnadareski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels... trivial, which is hilarious

Comment on lines +266 to +272
if (magic.StartsWith(new byte?[] { 0x52, 0x41, 0x53, 0x47, 0x49, 0x32, 0x2E, 0x30 }))
return SupportedFileType.RealArcadeInstaller;

// XZip2.0
// Found in the ".mez" files in IA item "Nova_RealArcadeCD_USA".
if (magic.StartsWith(new byte?[] { 0x58, 0x5A, 0x69, 0x70, 0x32, 0x2E, 0x30 }))
return SupportedFileType.RealArcadeMezzanine;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these need full models? Or is just the magic number known?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full models would be ideal at some point, and would allow for better parsing of data such as game ID (which is present in plaintext toward the start of the file), but isn't really needed by any means.

@mnadareski mnadareski merged commit f876a4e into SabreTools:master Apr 16, 2024
2 checks passed
@TheRogueArchivist TheRogueArchivist deleted the RealArcade-Addition branch June 5, 2024 06:08
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.

2 participants