From 4d6635497b7c5d785def05371ccb856972eae12a Mon Sep 17 00:00:00 2001 From: 4am Date: Wed, 21 Feb 2018 16:14:56 -0500 Subject: [PATCH] . --- src/action.a | 2 +- src/pitchdark.a | 1 - src/prodos.a | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/action.a b/src/action.a index 9c85f65..a34ea1e 100644 --- a/src/action.a +++ b/src/action.a @@ -133,7 +133,7 @@ callback_boxart ldy GAMES+1, x jsr AddToPath - jsr LoadDHRFile + jsr LoadDHRFile ; load artwork from file !word gPathname !word kProDOSFileBuffer bcs .nope diff --git a/src/pitchdark.a b/src/pitchdark.a index 33d1b91..047c9b3 100644 --- a/src/pitchdark.a +++ b/src/pitchdark.a @@ -47,7 +47,6 @@ Start jsr LoadGlobalPreferences ; get current game jsr LoadGameInfo ; load and parse game description text -Restart jsr CreateViews ; create all WeeGUI views (UI elements) ldx #WGClearScreen ; clear screen jsr WeeGUI diff --git a/src/prodos.a b/src/prodos.a index 2f81c7a..3980dc2 100644 --- a/src/prodos.a +++ b/src/prodos.a @@ -149,9 +149,9 @@ LoadDHRFile sta .saverefnum+1 ; store file refnum ldy #$20 - stz mliparam+2 ; read into $2000 + stz mliparam+2 ; read into $2000 in main mem sty mliparam+3 - stz mliparam+4 ; max $2000 bytes + stz mliparam+4 ; read length = $2000 bytes (first half of file) sty mliparam+5 jsr _readfile @@ -175,7 +175,7 @@ LoadDHRFile bne .writeToAux lda .saverefnum+1 - jsr _readfile + jsr _readfile ; read another $2000 bytes into $2000 (stays in main mem) .close php ; save flags from readfile