Skip to content

Commit 9c37cd5

Browse files
committed
quicksave: turn off LEDs when quickloading
normally all 3 LED colours would be on until MainUI loads, since our fake MainUI didn't handle it until now it would remain white until exiting the game after a quickload
1 parent 98ce224 commit 9c37cd5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

static/trimui/app/MainUI

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ else
4545
rm -f /tmp/.play_bootvideo
4646
mv "$QUICKSAVE_CMD_TO_RUN" /tmp/cmd_to_run.sh
4747
mv "$SAVED_MAINUI_STATE" /tmp/state.json
48+
for led in 1 2 3; do
49+
echo "none" > /sys/devices/platform/sunxi-led/leds/led$led/trigger
50+
done
4851
exec sh -c "/tmp/cmd_to_run.sh; rm -f /tmp/cmd_to_run.sh"
4952
fi
5053

0 commit comments

Comments
 (0)