mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2025-02-01 01:34:22 +00:00
.
This commit is contained in:
parent
0105bc0fa8
commit
4d6635497b
@ -133,7 +133,7 @@ callback_boxart
|
|||||||
ldy GAMES+1, x
|
ldy GAMES+1, x
|
||||||
jsr AddToPath
|
jsr AddToPath
|
||||||
|
|
||||||
jsr LoadDHRFile
|
jsr LoadDHRFile ; load artwork from file
|
||||||
!word gPathname
|
!word gPathname
|
||||||
!word kProDOSFileBuffer
|
!word kProDOSFileBuffer
|
||||||
bcs .nope
|
bcs .nope
|
||||||
|
@ -47,7 +47,6 @@ Start
|
|||||||
jsr LoadGlobalPreferences ; get current game
|
jsr LoadGlobalPreferences ; get current game
|
||||||
jsr LoadGameInfo ; load and parse game description text
|
jsr LoadGameInfo ; load and parse game description text
|
||||||
|
|
||||||
Restart
|
|
||||||
jsr CreateViews ; create all WeeGUI views (UI elements)
|
jsr CreateViews ; create all WeeGUI views (UI elements)
|
||||||
ldx #WGClearScreen ; clear screen
|
ldx #WGClearScreen ; clear screen
|
||||||
jsr WeeGUI
|
jsr WeeGUI
|
||||||
|
@ -149,9 +149,9 @@ LoadDHRFile
|
|||||||
sta .saverefnum+1 ; store file refnum
|
sta .saverefnum+1 ; store file refnum
|
||||||
|
|
||||||
ldy #$20
|
ldy #$20
|
||||||
stz mliparam+2 ; read into $2000
|
stz mliparam+2 ; read into $2000 in main mem
|
||||||
sty mliparam+3
|
sty mliparam+3
|
||||||
stz mliparam+4 ; max $2000 bytes
|
stz mliparam+4 ; read length = $2000 bytes (first half of file)
|
||||||
sty mliparam+5
|
sty mliparam+5
|
||||||
|
|
||||||
jsr _readfile
|
jsr _readfile
|
||||||
@ -175,7 +175,7 @@ LoadDHRFile
|
|||||||
bne .writeToAux
|
bne .writeToAux
|
||||||
|
|
||||||
lda .saverefnum+1
|
lda .saverefnum+1
|
||||||
jsr _readfile
|
jsr _readfile ; read another $2000 bytes into $2000 (stays in main mem)
|
||||||
|
|
||||||
.close
|
.close
|
||||||
php ; save flags from readfile
|
php ; save flags from readfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user