mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
FRAMEWORK: comments and logging
This commit is contained in:
parent
a192f54e2a
commit
8c4d8f5636
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
}
|
||||
|
|
|
@ -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> ...
|
||||
|
||||
|
|
Loading…
Reference in a new issue