This commit is contained in:
4am 2018-02-21 16:14:56 -05:00
parent 0105bc0fa8
commit 4d6635497b
3 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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