Merge pull request #884 from fewtarius/dev

Fix scenario where pico-8 starts using the static bin, but then tries to start again using the dynamic bin.
This commit is contained in:
fewtarius 2023-01-01 16:33:00 -05:00 committed by GitHub
commit a9a9f0db92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,12 +27,14 @@ if [ -e "/storage/roms/pico-8/${STATIC_BIN}" ]
then
jslisten set "${STATIC_BIN}"
/storage/roms/pico-8/${STATIC_BIN} -home -root_path /storage/roms/pico-8 -joystick 0 ${OPTIONS} "${CART}"
exit
fi
if [ -e "/storage/roms/pico-8/pico8_dyn" ] || [ ! "$?" = 0 ]
then
jslisten set "pico8_dyn"
/storage/roms/pico-8/pico8_dyn -home -root_path /storage/roms/pico-8 -joystick 0 ${OPTIONS} "${CART}"
exit
else
text_viewer -e -w -t "Missing Pico-8 binaries!" -m "Extract your purchased pico8 package into the pico-8 directory on your games partition."
fi