Fix rewind script

Merge pull request #177 from icenine451/cooker-fixes
This commit is contained in:
XargonWan 2022-10-13 15:05:26 +02:00 committed by GitHub
commit 9ded4bd6a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,13 +9,13 @@ zenity --question \
if [ $? == 0 ] #yes, enable if [ $? == 0 ] #yes, enable
then then
sed -i 's%rewind_enable = .*%rewind_enable = "true"' $racfg sed -i 's%rewind_enable = .*%rewind_enable = "true"%' $racfg
zenity --info \ zenity --info \
--no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
--title "RetroDECK" \ --title "RetroDECK" \
--text="Rewind enabled\!\nYou can check on Libretro docs to see which cores supports this function." --text="Rewind enabled\!\nYou can check on Libretro docs to see which cores supports this function."
else # no, disable else # no, disable
sed -i 's%rewind_enable = .*%rewind_enable = "false"' $racfg sed -i 's%rewind_enable = .*%rewind_enable = "false"%' $racfg
zenity --info \ zenity --info \
--no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
--title "RetroDECK" \ --title "RetroDECK" \