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

Not recognizing "Probable" files as embedded disk images #35

Closed
fadden opened this issue Oct 26, 2024 · 1 comment
Closed

Not recognizing "Probable" files as embedded disk images #35

fadden opened this issue Oct 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@fadden
Copy link
Owner

fadden commented Oct 26, 2024

The "Probable" (ProDOS-Bootable) project at github.com/a2-4am/probable stores a 140KB disk image in an 800KB ProDOS volume. It should be opened as a sub-image with a double-click in the GUI or via --depth=max, but currently isn't.

The HasDiskImageAttribs() function in FileIdentifier.cs is responsible for deciding if something might be a disk image, which it does narrowly, using a combination of file type and filename extension. Even if the extension is unknown, we should still recognize it as a disk if the size is exactly 143360 bytes, as that is very likely a 5.25" disk image. We also want to recognize $F1 is a possible disk image file type (we currently only accept BIN or NON).

@a2-4am

@fadden fadden added the enhancement New feature or request label Oct 26, 2024
fadden added a commit that referenced this issue Oct 26, 2024
We use a pretty narrow definition, because we don't want to have
false-positives.  This change adds $F1 to the set of possible
ProDOS file types (which was previously just BIN and NON), and
accepts files with an unrecognized filename extension if their
length is exactly 140kiB.

(issue #35)
@fadden
Copy link
Owner Author

fadden commented Oct 26, 2024

@fadden fadden closed this as completed Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant