mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2025-01-19 09:31:39 +00:00
.
This commit is contained in:
parent
0105bc0fa8
commit
4d6635497b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user