We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 902df88 commit 252eba8Copy full SHA for 252eba8
1 file changed
FunKey/board/funkey/rootfs-overlay/usr/local/sbin/start_launcher
@@ -5,6 +5,7 @@
5
6
LOCK_FILE="/var/lock/launcher.lock"
7
INSTANT_PLAY_FILE="/mnt/instant_play"
8
+RESUME_PLAY_FILE="/mnt/resume_play"
9
PREVENT_LAUNCHER_FILE="/mnt/prevent_launcher"
10
REBOOTING_FILE="/run/rebooting"
11
@@ -22,8 +23,10 @@ cp "/usr/games/lynxboot.img" "/usr/games/mednafen-09x.cfg" "${MEDNAFEN_HOME}/"
22
23
# Launch Previous Game if any
24
if [ -f "${INSTANT_PLAY_FILE}" ]; then
25
echo "Found Instant Play file, restarting previous game with command: "$(head -n 1 "${INSTANT_PLAY_FILE}")
- source "${INSTANT_PLAY_FILE}"
26
- rm -f "${INSTANT_PLAY_FILE}"
+ rm -f "${RESUME_PLAY_FILE}"
27
+ mv "${INSTANT_PLAY_FILE}" "${RESUME_PLAY_FILE}"
28
+ source "${RESUME_PLAY_FILE}"
29
30
termfix_all
31
fi
32
0 commit comments