clear is-HGR-title-packed marker just before loading

fixes https://github.com/a2-4am/4cade/issues/548
This commit is contained in:
4am 2023-05-16 17:31:19 -04:00
parent 7f7e5b6023
commit dc95de2c27
29 changed files with 31 additions and 30 deletions

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15432724 !be24 15432772
!le16 5112 !le16 5112

View File

@ -5,4 +5,4 @@
; ;
!byte 0 !byte 0
!be24 15378115 !be24 15378115
!le16 5695 !le16 5743

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15437836 !be24 15437884
!le16 410 !le16 410

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15438590 !be24 15438638
!le16 448 !le16 448

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15439038 !be24 15439086
!le16 303 !le16 303

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15386450 !be24 15386498
!le16 1640 !le16 1640

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15438322 !be24 15438370
!le16 67 !le16 67

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15432665 !be24 15432713
!le16 59 !le16 59

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15431121 !be24 15431169
!le16 1426 !le16 1426

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15415355 !be24 15415403
!le16 540 !le16 540

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15383810 !be24 15383858
!le16 2640 !le16 2640

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15388448 !be24 15388496
!le16 7329 !le16 7329

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15438246 !be24 15438294
!le16 76 !le16 76

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15432547 !be24 15432595
!le16 118 !le16 118

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15438389 !be24 15438437
!le16 201 !le16 201

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15415895 !be24 15415943
!le16 4897 !le16 4897

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15420792 !be24 15420840
!le16 1775 !le16 1775

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15422567 !be24 15422615
!le16 1181 !le16 1181

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15423748 !be24 15423796
!le16 3421 !le16 3421

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15427169 !be24 15427217
!le16 3359 !le16 3359

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15430528 !be24 15430576
!le16 479 !le16 479

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15431007 !be24 15431055
!le16 114 !le16 114

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15439341 !be24 15439389
!le16 2370 !le16 2370

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15401151 !be24 15401199
!le16 4933 !le16 4933

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15406084 !be24 15406132
!le16 2400 !le16 2400

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15388090 !be24 15388138
!le16 358 !le16 358

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15395777 !be24 15395825
!le16 5374 !le16 5374

View File

@ -4,5 +4,5 @@
; This file is automatically generated ; This file is automatically generated
; ;
!byte 0 !byte 0
!be24 15408484 !be24 15408532
!le16 6871 !le16 6871

View File

@ -123,14 +123,15 @@ HGRTitleCallback
@fname !word $FDFD ; SMC @fname !word $FDFD ; SMC
+ST16 @indexRecordPtr +ST16 @indexRecordPtr
lda #$00
sta $5FFD
jsr LoadIndexedFile ; load HGR graphic at $4000 jsr LoadIndexedFile ; load HGR graphic at $4000
!word $4000 !word $4000
@indexRecordPtr @indexRecordPtr
!word $FDFD ; SMC !word $FDFD ; SMC
lda $5FFD lda $5FFD
stx $5FFD ; ensure that we won't find it again if next
; file is really compressed
cmp #$4C ; Check if screen hole now contains a JMP cmp #$4C ; Check if screen hole now contains a JMP
beq @noUnpack ; if so, file was not packed, so skip unpack beq @noUnpack ; if so, file was not packed, so skip unpack
jsr UnpackHGRTitle jsr UnpackHGRTitle