From bf2fa76c27c3c9c3ca3613ff95ca9c29b3826436 Mon Sep 17 00:00:00 2001 From: Lx32 Date: Wed, 28 Aug 2024 17:59:43 +0200 Subject: [PATCH 1/5] Fixed some error --- functions/steam-sync/steam-sync.py | 4 ++++ 1 file changed, 4 insertions(+) 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/")) From 04919fdf7f95ef33176d2da727d9286dd470709a Mon Sep 17 00:00:00 2001 From: Lx32 Date: Wed, 28 Aug 2024 18:00:08 +0200 Subject: [PATCH 2/5] Moved away the creation of .sync folder --- functions/steam-sync/resetsync.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/functions/steam-sync/resetsync.py b/functions/steam-sync/resetsync.py index 632d846d..91055517 100644 --- a/functions/steam-sync/resetsync.py +++ b/functions/steam-sync/resetsync.py @@ -3,9 +3,6 @@ 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): From d355e56e65348a153d89944c83c56d9f5704b77d Mon Sep 17 00:00:00 2001 From: Lx32 Date: Tue, 3 Sep 2024 22:15:21 +0200 Subject: [PATCH 3/5] Uploaded standard exception --- functions/steam-sync/userExceptions.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 functions/steam-sync/userExceptions.json 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 + } + } +} From 78fe802e4e21a762c003be9c22a043a5ba484481 Mon Sep 17 00:00:00 2001 From: Lx32 Date: Tue, 3 Sep 2024 22:16:07 +0200 Subject: [PATCH 4/5] Added reset userExceptions --- functions/steam-sync/resetsync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/steam-sync/resetsync.py b/functions/steam-sync/resetsync.py index 91055517..80e01acc 100644 --- a/functions/steam-sync/resetsync.py +++ b/functions/steam-sync/resetsync.py @@ -8,6 +8,7 @@ def resetfun(rdhome): 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() From 939bac2bf472bc9acfc55419790a496b0df4c2d3 Mon Sep 17 00:00:00 2001 From: Lx32 Date: Tue, 3 Sep 2024 22:19:24 +0200 Subject: [PATCH 5/5] Revert missing entrypoint --- tools/configurator.sh | 4 ++++ 1 file changed, 4 insertions(+) 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!"