diff --git a/functions/steam-sync/resetsync.py b/functions/steam-sync/resetsync.py index 632d846d..80e01acc 100644 --- a/functions/steam-sync/resetsync.py +++ b/functions/steam-sync/resetsync.py @@ -3,14 +3,12 @@ import shutil import re def resetfun(rdhome): - if not os.path.exists(rdhome+"/.sync/"): - os.makedirs(rdhome+"/.sync/") - os.system("/app/bin/zypak-wrapper /app/srm/steam-rom-manager list") srm_path=os.path.expanduser("~/.var/app/net.retrodeck.retrodeck/config/steam-rom-manager/userData/userConfigurations.json") if not os.path.isfile(srm_path): print("Steam ROM Manager configuration not initialized! Initializing now.") shutil.copyfile("/app/libexec/steam-sync/userConfigurations.json", srm_path) + shutil.copyfile("/app/libexec/steam-sync/userExceptions.json", srm_path) with open(srm_path,"r") as f: data=f.read() diff --git a/functions/steam-sync/steam-sync.py b/functions/steam-sync/steam-sync.py index 1e5b45e8..4ce79e4c 100644 --- a/functions/steam-sync/steam-sync.py +++ b/functions/steam-sync/steam-sync.py @@ -49,6 +49,7 @@ command_list_default={ "dreamcast": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/flycast_libretro.so", "easyrpg": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/easyrpg_libretro.so", "famicom": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/mesen_libretro.so", +"flash": "TODO: I have to catch how it works", #TODO "fba": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/fbalpha2012_libretro.so", "fbneo": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/fbneo_libretro.so", "fds": "flatpak run --command=retroarch net.retrodeck.retrodeck -L /var/config/retroarch/cores/mesen_libretro.so", @@ -394,6 +395,9 @@ def start_config(): print("Steam ROM Manager configuration not initialized! Initializing now.") resetfun(rdhome) + if not os.path.exists(rdhome+"/.sync/"): + os.makedirs(rdhome+"/.sync/") + if __name__=="__main__": start_config() addToSteam(os.listdir(rdhome+"/ES-DE/gamelists/")) diff --git a/functions/steam-sync/userExceptions.json b/functions/steam-sync/userExceptions.json new file mode 100644 index 00000000..221f012b --- /dev/null +++ b/functions/steam-sync/userExceptions.json @@ -0,0 +1,12 @@ +{ + "exceptionsVersion": 1, + "titles": { + "IGNORE": { + "newTitle": "", + "searchTitle": "", + "commandLineArguments": "", + "exclude": true, + "excludeArtwork": false + } + } +} diff --git a/tools/configurator.sh b/tools/configurator.sh index a4775360..d0762fb2 100755 --- a/tools/configurator.sh +++ b/tools/configurator.sh @@ -156,6 +156,10 @@ configurator_welcome_dialog() { configurator_about_retrodeck_dialog ;; + "Sync with Steam" ) + configurator_add_steam + ;; + "Developer Options" ) log i "Configurator: opening \"$choice\" menu" configurator_generic_dialog "RetroDECK Configurator - Developer Options" "The following features and options are potentially VERY DANGEROUS for your RetroDECK install!\n\nThey should be considered the bleeding-edge of upcoming RetroDECK features, and never used when you have important saves/states/roms that are not backed up!\n\nYOU HAVE BEEN WARNED!"