mirror of
https://github.com/a2-4am/4cade.git
synced 2025-02-26 22:31:11 +00:00
fix a file-size corner-case
This commit is contained in:
parent
7659286947
commit
9908bcb3de
@ -148,9 +148,9 @@ CHEATS_ENABLED = %00001000
|
|||||||
; shared symbols for prelaunch and effects to call ProRWTS2 functions
|
; shared symbols for prelaunch and effects to call ProRWTS2 functions
|
||||||
iCurBlockLo = $D401 ; constant
|
iCurBlockLo = $D401 ; constant
|
||||||
iCurBlockHi = $D403 ; constant
|
iCurBlockHi = $D403 ; constant
|
||||||
launchpatch = $D657 ; glue.launch.a
|
launchpatch = $D661 ; glue.launch.a
|
||||||
iAddToPath = $FE5C ; Roger Rabbit, avoid, use Infiltrator 2 style instead
|
iAddToPath = $FE5C ; Roger Rabbit, avoid, use Infiltrator 2 style instead
|
||||||
itraverse = $D94E ; Roger Rabbit, avoid, use Infiltrator 2 style instead
|
itraverse = $D958 ; Roger Rabbit, avoid, use Infiltrator 2 style instead
|
||||||
ldrlo = $55 ; constant
|
ldrlo = $55 ; constant
|
||||||
ldrhi = $56 ; constant
|
ldrhi = $56 ; constant
|
||||||
namlo = $57 ; constant
|
namlo = $57 ; constant
|
||||||
|
@ -230,6 +230,7 @@ ver_02 = 1
|
|||||||
KEY_POINTER = $11 ;ProDOS constant
|
KEY_POINTER = $11 ;ProDOS constant
|
||||||
EOF_LO = $15 ;ProDOS constant
|
EOF_LO = $15 ;ProDOS constant
|
||||||
EOF_HI = $16 ;ProDOS constant
|
EOF_HI = $16 ;ProDOS constant
|
||||||
|
EOF_HI2 = $17 ;ProDOS constant
|
||||||
AUX_TYPE = $1f ;ProDOS constant
|
AUX_TYPE = $1f ;ProDOS constant
|
||||||
ENTRY_SIZE = $27 ;ProDOS constant
|
ENTRY_SIZE = $27 ;ProDOS constant
|
||||||
NEXT_BLOCK_LO = $2 ;ProDOS constant
|
NEXT_BLOCK_LO = $2 ;ProDOS constant
|
||||||
@ -2687,7 +2688,15 @@ pathpatch2
|
|||||||
!if (bounds_check + return_size + one_shot) > 0 {
|
!if (bounds_check + return_size + one_shot) > 0 {
|
||||||
;cache EOF (file size, loaded backwards)
|
;cache EOF (file size, loaded backwards)
|
||||||
|
|
||||||
ldy #EOF_HI
|
ldy #EOF_HI2
|
||||||
|
lda (scratchlo), y
|
||||||
|
beq not48
|
||||||
|
lda #$ff
|
||||||
|
tax
|
||||||
|
bne +
|
||||||
|
|
||||||
|
not48
|
||||||
|
dey
|
||||||
lda (scratchlo), y
|
lda (scratchlo), y
|
||||||
!if (enable_write + aligned_read) > 0 {
|
!if (enable_write + aligned_read) > 0 {
|
||||||
tax
|
tax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user