mirror of
https://github.com/a2-4am/4cade.git
synced 2025-03-15 01:33:13 +00:00
close any open files on re-enter
This commit is contained in:
parent
d49cc0393c
commit
a2e4f1f583
@ -12,6 +12,7 @@ FirstMover
|
||||
!pseudopc $D000 {
|
||||
Reenter ; self-running demos should call this to exit back to 4cade
|
||||
+READ_RAM1_WRITE_RAM1
|
||||
jsr CloseHandles ; close any open handles to restore ProRWTS state to original
|
||||
Main
|
||||
ldx #$FF
|
||||
txs
|
||||
|
@ -292,7 +292,13 @@ end_promote
|
||||
;------------------------------------------------------------------------------
|
||||
packet = $40 ;word
|
||||
buffer = $42 ;word
|
||||
|
||||
ProDOS_enter
|
||||
!ifdef PASS2 {
|
||||
!set CloseHandles = @imp_close
|
||||
} else { ;PASS2
|
||||
!set PASS2=1
|
||||
}
|
||||
pla
|
||||
sta @fetchaddr+1
|
||||
pla
|
||||
|
Loading…
x
Reference in New Issue
Block a user