From 9e386162bdc67506883fa2a61129bc9614429b47 Mon Sep 17 00:00:00 2001 From: 4am Date: Sat, 31 Mar 2018 12:38:51 -0400 Subject: [PATCH] . --- src/parse.gameinfo.a | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/parse.gameinfo.a b/src/parse.gameinfo.a index ac9a981..a682a50 100644 --- a/src/parse.gameinfo.a +++ b/src/parse.gameinfo.a @@ -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 }