File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
FunKey/board/funkey/rootfs-overlay/usr/local/sbin Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 55
66LOCK_FILE=" /var/lock/launcher.lock"
77INSTANT_PLAY_FILE=" /mnt/instant_play"
8+ RESUME_PLAY_FILE=" /mnt/resume_play"
89PREVENT_LAUNCHER_FILE=" /mnt/prevent_launcher"
910REBOOTING_FILE=" /run/rebooting"
1011
@@ -22,8 +23,10 @@ cp "/usr/games/lynxboot.img" "/usr/games/mednafen-09x.cfg" "${MEDNAFEN_HOME}/"
2223# Launch Previous Game if any
2324if [ -f " ${INSTANT_PLAY_FILE} " ]; then
2425 echo " Found Instant Play file, restarting previous game with command: " $( head -n 1 " ${INSTANT_PLAY_FILE} " )
25- source " ${INSTANT_PLAY_FILE} "
26- rm -f " ${INSTANT_PLAY_FILE} "
26+ rm -f " ${RESUME_PLAY_FILE} "
27+ mv " ${INSTANT_PLAY_FILE} " " ${RESUME_PLAY_FILE} "
28+ source " ${RESUME_PLAY_FILE} "
29+ rm -f " ${RESUME_PLAY_FILE} "
2730 termfix_all
2831fi
2932
You can’t perform that action at this time.
0 commit comments