Procházet zdrojové kódy

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

Keir Fraser před 4 roky
rodič
revize
a6e75a6185
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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