Browse Source

edsk: Search for smaller GAP3 area after end of last sector with Bad CRC
Fixes Captain Blood (1988)

Keir Fraser 4 years ago
parent
commit
a6e75a6185
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/greaseweazle/image/edsk.py

+ 1 - 1
scripts/greaseweazle/image/edsk.py

@@ -323,7 +323,7 @@ class EDSK(Image):
                             idx = sec_data.find(idam)
                         else:
                             # Last sector: Look for GAP3
-                            idx = sec_data.find(bytes([track.gapbyte]*16))
+                            idx = sec_data.find(bytes([track.gapbyte]*8))
                         if idx > 0:
                             # 2 + gap_3 = CRC + GAP3 (because gap_included)
                             clippable += data_size - idx + 2 + gap_3