From 8c4d8f56366e0dd73f8e15b62a57f11f81231074 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 5 Feb 2025 11:12:05 +0900 Subject: [PATCH] FRAMEWORK: comments and logging --- functions/050_save_migration.sh | 3 +++ functions/post_update.sh | 11 ++++++++++- tools/retrodeck_function_wrapper.sh | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/functions/050_save_migration.sh b/functions/050_save_migration.sh index 4eaf7dc0..02db6b8f 100644 --- a/functions/050_save_migration.sh +++ b/functions/050_save_migration.sh @@ -1,6 +1,9 @@ #!/bin/bash save_migration() { + + log i "Executing 0.5.0b save migration" + # Finding existing ROMs folder if [ -d "$default_sd/retrodeck" ] then diff --git a/functions/post_update.sh b/functions/post_update.sh index c50fae4d..47996b93 100644 --- a/functions/post_update.sh +++ b/functions/post_update.sh @@ -6,6 +6,7 @@ post_update() { log i "Executing post-update script" if [[ $(check_version_is_older_than "0.5.0b") == "true" ]]; then # If updating from prior to save sorting change at 0.5.0b + log d "Version is older than 0.5.0b, executing save migration" save_migration fi @@ -520,7 +521,7 @@ post_update() { set_setting_value "$primehackgfxconf" "AspectRatio" "0" "dolphin" "Settings" fi - # --- ALWAYS EXECUTED --- + # --- ALWAYS EXECUTED IN 0.9.0b --- # New components preparation log i "New components were added in this version, initializing them" @@ -555,6 +556,12 @@ post_update() { fi # end of 0.9.0b + if [[ $(check_version_is_older_than "0.9.1b") == "true" ]]; then + + log d "Nothing to do here" + + fi # end of 0.9.1b + # The following commands are run every time. if [[ -d "/var/data/dolphin-emu/Load/DynamicInputTextures" ]]; then # Refresh installed textures if they have been enabled @@ -590,4 +597,6 @@ post_update() { else changelog_dialog "$version" fi + + log i "Upgrade process completed successfully." } diff --git a/tools/retrodeck_function_wrapper.sh b/tools/retrodeck_function_wrapper.sh index 03659d84..a05fac27 100755 --- a/tools/retrodeck_function_wrapper.sh +++ b/tools/retrodeck_function_wrapper.sh @@ -1,5 +1,7 @@ #!/bin/bash +# TODO: is this function still needed? + # This wrapper will run a single RetroDECK function with any number of arguments # USAGE: /bin/bash retrodeck_function_wrapper.sh ...