mirror of
https://github.com/A2osX/A2osX.git
synced 2025-02-02 02:31:33 +00:00
bug fix
This commit is contained in:
parent
0c3f235d13
commit
b4b7e89946
@ -191,7 +191,13 @@ S.ListDirInitA sta R.AL
|
|||||||
tya
|
tya
|
||||||
sta (R.BX) remove pattern from path
|
sta (R.BX) remove pattern from path
|
||||||
|
|
||||||
.4 >PUSHWI S.LISTDIR.SIZE get LISTDIR Struct
|
.4 >LDYA R.BX
|
||||||
|
jsr S.NewPStrYA
|
||||||
|
bcs .99
|
||||||
|
ldy #S.LISTDIR.hPATH
|
||||||
|
sta (R.CX),y
|
||||||
|
|
||||||
|
>PUSHWI S.LISTDIR.SIZE get LISTDIR Struct
|
||||||
>PUSHBI S.MEM.F.INIT0 reset all bytes
|
>PUSHBI S.MEM.F.INIT0 reset all bytes
|
||||||
jsr S.GetMem
|
jsr S.GetMem
|
||||||
bcs .99
|
bcs .99
|
||||||
@ -296,11 +302,14 @@ S.ListDirInitAD
|
|||||||
|
|
||||||
ldy #$25 get File_count LO
|
ldy #$25 get File_count LO
|
||||||
lda (ZPQuickPtr1),y
|
lda (ZPQuickPtr1),y
|
||||||
|
clc
|
||||||
|
adc #1 Add 1 for VOL/DIR Header
|
||||||
ldy #S.LISTDIR.FC
|
ldy #S.LISTDIR.FC
|
||||||
sta (R.CX),y
|
sta (R.CX),y
|
||||||
|
|
||||||
ldy #$26 get File_count HI
|
ldy #$26 get File_count HI
|
||||||
lda (ZPQuickPtr1),y
|
lda (ZPQuickPtr1),y
|
||||||
|
adc #0
|
||||||
ldy #S.LISTDIR.FC+1
|
ldy #S.LISTDIR.FC+1
|
||||||
sta (R.CX),y
|
sta (R.CX),y
|
||||||
|
|
||||||
@ -535,7 +544,12 @@ S.ListDirCloseA pha
|
|||||||
beq .5
|
beq .5
|
||||||
jsr S.FreeMemA
|
jsr S.FreeMemA
|
||||||
|
|
||||||
.5 pla
|
.5 ldy #S.LISTDIR.hPATH
|
||||||
|
lda (ZPQuickPtr1),y
|
||||||
|
beq .6
|
||||||
|
jsr S.FreeMemA
|
||||||
|
|
||||||
|
.6 pla
|
||||||
jsr S.FreeMemA
|
jsr S.FreeMemA
|
||||||
clc
|
clc
|
||||||
rts
|
rts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user