mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2025-01-04 03:31:51 +00:00
.
This commit is contained in:
parent
5aecacbd00
commit
9e386162bd
@ -127,7 +127,31 @@ LoadGameInfo
|
||||
jsr okvs_get ; get selected version of this game
|
||||
!word gGlobalPrefsStore
|
||||
+ !word $FDFD ; SMC
|
||||
; +STAY + ; A/Y contains address
|
||||
+STAY SRC ; A/Y contains address
|
||||
|
||||
lda (SRC)
|
||||
dec
|
||||
dec ; chop off filename suffix ('Z3' or similar)
|
||||
tay
|
||||
phy
|
||||
- lda (SRC),y
|
||||
sta gVal,y
|
||||
dey
|
||||
bpl -
|
||||
ply
|
||||
lda #'S' ; add new suffix ('SAV')
|
||||
sta gVal,y
|
||||
iny
|
||||
lda #'A'
|
||||
sta gVal,y
|
||||
iny
|
||||
lda #'V'
|
||||
sta gVal,y
|
||||
inc gVal ; fix string length
|
||||
jsr ResetPath
|
||||
+LDADDR gVal
|
||||
jsr AddToPath
|
||||
|
||||
|
||||
rts
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user