From 4993dbf93b9018f59ba7beb6078c3478235c9c38 Mon Sep 17 00:00:00 2001
From: XargonWan <XargonWan@gmail.com>
Date: Thu, 5 Sep 2024 21:11:12 +0900
Subject: [PATCH] STEAM_SYNC_SH: moved it on retrodeck quit instead of
 retrodeck start [skip ci]

---
 functions/other_functions.sh | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/functions/other_functions.sh b/functions/other_functions.sh
index 7eb800f8..887ffb9d 100644
--- a/functions/other_functions.sh
+++ b/functions/other_functions.sh
@@ -882,17 +882,10 @@ quit_retrodeck() {
   pkill -f "es-de"
   log i "Shutting down RetroDECK's framework"
   pkill -f "retrodeck"
-  log i "See you next time"
-}
 
-start_retrodeck() {
-  splash_screen # Check if today has a surprise splashscreen and load it if so
-  ponzu
-
-  # if steam sync is on do the magic
+    # if steam sync is on do the magic
   if [[ $steam_sync == "true" ]]; then
   (
-  #python3 /app/libexec/steam-sync/steam-sync.py #TODO: clean me
   source /app/libexec/steam-sync/steam-sync.sh
   addToSteam "$(ls "$rdhome/ES-DE/gamelists/")"
   ) |
@@ -905,7 +898,13 @@ start_retrodeck() {
     --auto-close \
     --auto-kill
   fi
+  
+  log i "See you next time"
+}
 
+start_retrodeck() {
+  splash_screen # Check if today has a surprise splashscreen and load it if so
+  ponzu
   log i "Starting RetroDECK v$version"
   es-de
 }