Skip to content

Commit

Permalink
Remove hardcoded path
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelherodev authored Oct 7, 2018
1 parent f9c91cb commit 22687f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ mainLoop:
pcall(waitKey)

cp kClear
kjp(z, launchCastle)
kjp(z, launchLauncher)
cp kYEqu
kjp(z, launchCastle)
kjp(z, launchLauncher)
cp kUp
jr z, doUp
cp kDown
Expand Down Expand Up @@ -186,8 +186,8 @@ _: pcall(flushKeys)
jr z, doKill
jr -_

launchCastle:
kld(de, castlePath)
launchLauncher:
kld(de, launcherPath)
di
pcall(launchProgram)
pcall(killCurrentThread)
Expand All @@ -210,7 +210,7 @@ _: pcall(flushKeys)
jr nz, -_

_: pcall(flushKeys)
jr launchCastle
jr launchLauncher

drawThreads:
xor a
Expand Down Expand Up @@ -455,7 +455,7 @@ moreThreadsDownSprite: ; 8x3
.db 0b00100000

backStr:
.db "Castle", 0
.db "Launcher", 0
optionsStr:
.db "Options", 0
runningProgramsStr:
Expand All @@ -477,4 +477,4 @@ hasToRedraw:
.db 0

castlePath:
.db "/bin/castle", 0
.db "/bin/launcher", 0

0 comments on commit 22687f3

Please sign in to comment.