소스 검색

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

Keir Fraser 4 년 전
부모
커밋
a6e75a6185
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
                             idx = sec_data.find(idam)
                         else:
                         else:
                             # Last sector: Look for GAP3
                             # Last sector: Look for GAP3
-                            idx = sec_data.find(bytes([track.gapbyte]*16))
+                            idx = sec_data.find(bytes([track.gapbyte]*8))
                         if idx > 0:
                         if idx > 0:
                             # 2 + gap_3 = CRC + GAP3 (because gap_included)
                             # 2 + gap_3 = CRC + GAP3 (because gap_included)
                             clippable += data_size - idx + 2 + gap_3
                             clippable += data_size - idx + 2 + gap_3