From f64a64953df9c303d16f915ad0f94d6ec23994c0 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sun, 8 Sep 2024 08:57:36 +0900 Subject: [PATCH] STEAM_SYNC: standardized script name --- functions/other_functions.sh | 2 +- functions/{steam-sync.sh => steam_sync.sh} | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) rename functions/{steam-sync.sh => steam_sync.sh} (99%) diff --git a/functions/other_functions.sh b/functions/other_functions.sh index 887ffb9d..d32f8322 100644 --- a/functions/other_functions.sh +++ b/functions/other_functions.sh @@ -886,7 +886,7 @@ quit_retrodeck() { # if steam sync is on do the magic if [[ $steam_sync == "true" ]]; then ( - source /app/libexec/steam-sync/steam-sync.sh + source /app/libexec/steam_sync.sh addToSteam "$(ls "$rdhome/ES-DE/gamelists/")" ) | zenity --progress \ diff --git a/functions/steam-sync.sh b/functions/steam_sync.sh similarity index 99% rename from functions/steam-sync.sh rename to functions/steam_sync.sh index e7dbdad7..fb327a34 100644 --- a/functions/steam-sync.sh +++ b/functions/steam_sync.sh @@ -328,11 +328,9 @@ addToSteam() { sanitized_name=$(echo "$sanitized_name" | cut -c 1-100) fi - log d "Sanitized Name: $sanitized_name" + log d "Sanitized Name: $sanitized_name" - #TODO: FIXME, this part is wrong, I need to fix it - - local launcher="$rdhome/.sync/${sanitized_name}.sh" + local launcher="$steamsync_folder/${sanitized_name}.sh" log d "Creating shortcut at path: $launcher" if [[ -v command_list_default[$system] ]]; then @@ -356,6 +354,6 @@ addToSteam() { log i "Steam Sync: completed" } -remove_from_steam { +remove_from_steam() { echo "TBD" } \ No newline at end of file