diff --git a/emu-configs/retroarch.cfg b/emu-configs/retroarch.cfg index 1eb1b6db..265c05f8 100644 --- a/emu-configs/retroarch.cfg +++ b/emu-configs/retroarch.cfg @@ -60,7 +60,7 @@ cheevos_auto_screenshot = "true" cheevos_badges_enable = "false" cheevos_challenge_indicators = "true" cheevos_custom_host = "" -cheevos_enable = "true" +cheevos_enable = "false" cheevos_hardcore_mode_enable = "false" cheevos_leaderboards_enable = "true" cheevos_password = "" diff --git a/es-configs/tools-gamelist.xml b/es-configs/tools-gamelist.xml index b1341252..e59195be 100644 --- a/es-configs/tools-gamelist.xml +++ b/es-configs/tools-gamelist.xml @@ -1,6 +1,13 @@ + ./cheevos.sh + RetroAchievements Login + Enter your RetroAchievements account details. + true + true + + ./start-splore.sh Start Splore @@ -70,13 +77,13 @@ true true - + ./theme-fix.sh Theme fix diff --git a/tools/cheevos.sh b/tools/cheevos.sh new file mode 100755 index 00000000..71897d8a --- /dev/null +++ b/tools/cheevos.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +racfg="" + +login=$(zenity --forms --title="RetroAchievements Login" \ + --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ + --text="Enter your RetroAchievements Account details.\n\nBe aware that this tool cannot verify your login details.\nFor registration and more info visit\nhttps://retroachievements.org/\n" \ + --separator="=SEP=" \ + --add-entry="Username" \ + --add-password="Password") + +arrIN=(${login//=SEP=/ }) +user=${arrIN[0]} +pass=${arrIN[1]} + +sed -i "s%cheevos_enable =.*%cheevos_enable = \"true\"" $racfg +sed -i "s%cheevos_username =.*%cheevos_username = \"$user\"" $racfg +sed -i "s%cheevos_password =.*%cheevos_password = \"$pass\"" $racfg