diff options
author | arbee <rb6502@users.noreply.github.com> | 2021-05-29 11:29:58 -0400 |
---|---|---|
committer | arbee <rb6502@users.noreply.github.com> | 2021-05-29 11:29:58 -0400 |
commit | e8f345a388b5802e8f422e1e6676053312eed461 (patch) | |
tree | 7cf7cc190050868428392f43668b91caa363d113 /src/lib/formats | |
parent | 41b1e62e8f1d827427f8e945cc9121f6228dd13b (diff) |
apple2: handle Bernie ][ .2MGs with the signature bytes flipped. [R. Belmont]
Diffstat (limited to 'src/lib/formats')
-rw-r--r-- | src/lib/formats/ap_dsk35.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/formats/ap_dsk35.cpp b/src/lib/formats/ap_dsk35.cpp index 0fc1aafca32..9819406183c 100644 --- a/src/lib/formats/ap_dsk35.cpp +++ b/src/lib/formats/ap_dsk35.cpp @@ -1543,6 +1543,12 @@ int apple_2mg_format::identify(io_generic *io, uint32_t form_factor, const std:: return 100; } + // Bernie ][ The Rescue wrote 2MGs with the signature byte-flipped, other fields are valid + if (!strncmp(reinterpret_cast<char *>(signature), "GMI2", 4)) + { + return 100; + } + return 0; } |