FRAMEWORK: comments and logging

This commit is contained in:
XargonWan 2025-02-05 11:12:05 +09:00
parent a192f54e2a
commit 8c4d8f5636
3 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -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."
}

View file

@ -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 <function_name> <arg1> <arg2> ...