- Removed "reset tools" options

as those are now in RO space
- Fixed recursive symlink possibility for pico-8 setup
- Fixed BIOS check tool variable name
- Fixed tools gamelist dest file name
This commit is contained in:
icenine451 2023-03-22 12:41:26 -04:00
parent c9f2898418
commit 5ab04cdeeb
6 changed files with 7 additions and 37 deletions

View file

@ -1033,15 +1033,6 @@ cli_emulator_reset() {
esac esac
} }
tools_init() {
rm -rfv /var/config/retrodeck/tools/
mkdir -pv /var/config/retrodeck/tools/
cp -rfv /app/retrodeck/tools/* /var/config/retrodeck/tools/
mkdir -pv /var/config/emulationstation/.emulationstation/custom_systems/tools/
rm -rfv /var/config/retrodeck/tools/gamelist.xml
cp -fv /app/retrodeck/tools-gamelist.xml /var/config/retrodeck/tools/gamelist.xml
}
emulators_post_move() { emulators_post_move() {
# This script will redo the symlinks for all emulators after moving the $rdhome location without resetting other options # This script will redo the symlinks for all emulators after moving the $rdhome location without resetting other options
# FUTURE WORK: The sed commands here should be replaced with set_setting_value and dir_prep should be replaced with changing paths in config files directly where possible # FUTURE WORK: The sed commands here should be replaced with set_setting_value and dir_prep should be replaced with changing paths in config files directly where possible
@ -1321,7 +1312,6 @@ finit() {
( (
ra_init ra_init
standalones_init standalones_init
tools_init
) | ) |
zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \ zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \

View file

@ -1069,7 +1069,7 @@ modules:
- mkdir -p /app/tools - mkdir -p /app/tools
- cp tools/configurator.sh /app/tools/configurator.sh - cp tools/configurator.sh /app/tools/configurator.sh
- chmod +x /app/tools/configurator.sh - chmod +x /app/tools/configurator.sh
- cp es-configs/tools-gamelist.xml /app/tools/tools-gamelist.xml - cp es-configs/tools-gamelist.xml /app/tools/gamelist.xml
# Function libraries # Function libraries
- mkdir -p /app/libexec - mkdir -p /app/libexec

View file

@ -209,6 +209,7 @@ post_update() {
dir_prep "$rdhome/states/primehack" "/var/data/primehack/StateSaves" dir_prep "$rdhome/states/primehack" "/var/data/primehack/StateSaves"
rm -rf "$HOME/~/" # Remove old incorrect location from 0.6.2b rm -rf "$HOME/~/" # Remove old incorrect location from 0.6.2b
rm -f "$HOME/.lexaloffle/pico-8" # Remove old symlink to prevent recursion
dir_prep "$bios_folder/pico-8" "$HOME/.lexaloffle/pico-8" # Store binary and config files together. The .lexaloffle directory is a hard-coded location for the PICO-8 config file, cannot be changed dir_prep "$bios_folder/pico-8" "$HOME/.lexaloffle/pico-8" # Store binary and config files together. The .lexaloffle directory is a hard-coded location for the PICO-8 config file, cannot be changed
cp -fv $emuconfigs/citra/qt-config.ini /var/config/citra-emu/qt-config.ini cp -fv $emuconfigs/citra/qt-config.ini /var/config/citra-emu/qt-config.ini
@ -219,7 +220,6 @@ post_update() {
# The following commands are run every time. # The following commands are run every time.
tools_init
update_rd_conf update_rd_conf
) | ) |
zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \ zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \

@ -1 +1 @@
Subproject commit 717b78093797270877ec416e58082f1c71d435d8 Subproject commit 0b1cfb79e591e10488a3262d6b38db843c39a409

View file

@ -20,7 +20,6 @@ Arguments:
--configurator Starts the RetroDECK Configurator --configurator Starts the RetroDECK Configurator
--compress <file> Compresses target file to .chd format. Supports .cue, .iso and .gdi formats --compress <file> Compresses target file to .chd format. Supports .cue, .iso and .gdi formats
--reset-emulator <emulator> Reset one or more emulator configs to the default values --reset-emulator <emulator> Reset one or more emulator configs to the default values
--reset-tools Reset the RetroDECK Tools section
--reset-retrodeck Starts the initial RetroDECK installer (backup your data first!) --reset-retrodeck Starts the initial RetroDECK installer (backup your data first!)
For flatpak run specific options please run: flatpak run -h For flatpak run specific options please run: flatpak run -h
@ -67,18 +66,6 @@ https://retrodeck.net
exit exit
fi fi
;; ;;
--reset-tools*)
echo "You are about to reset the RetroDECK tools."
read -p "Enter 'y' to continue, 'n' to stop: " response
if [[ $response == [yY] ]]; then
tools_init
read -p "The process has been completed, press Enter key to start RetroDECK."
shift # Continue launch after previous command is finished
else
read -p "The process has been cancelled, press Enter key to exit."
exit
fi
;;
--reset-retrodeck*) --reset-retrodeck*)
echo "You are about to reset RetroDECK completely!" echo "You are about to reset RetroDECK completely!"
read -p "Enter 'y' to continue, 'n' to stop: " response read -p "Enter 'y' to continue, 'n' to stop: " response

View file

@ -50,7 +50,6 @@ source /app/libexec/functions.sh
# - Reset XEMU # - Reset XEMU
# - Reset Yuzu # - Reset Yuzu
# - Reset All Emulators # - Reset All Emulators
# - Reset Tools
# - Reset All # - Reset All
# Code for the menus should be put in reverse order, so functions for sub-menus exists before it is called by the parent menu # Code for the menus should be put in reverse order, so functions for sub-menus exists before it is called by the parent menu
@ -63,7 +62,6 @@ configurator_reset_dialog() {
--column="Choice" --column="Action" \ --column="Choice" --column="Action" \
"Reset Specific Emulator" "Reset only one specific emulator to default settings" \ "Reset Specific Emulator" "Reset only one specific emulator to default settings" \
"Reset All Emulators" "Reset all emulators to default settings" \ "Reset All Emulators" "Reset all emulators to default settings" \
"Reset Tools" "Reset Tools menu entries" \
"Reset All" "Reset RetroDECK to default settings" ) "Reset All" "Reset RetroDECK to default settings" )
case $choice in case $choice in
@ -156,11 +154,6 @@ configurator_reset_dialog() {
configurator_process_complete_dialog "resetting all emulators" configurator_process_complete_dialog "resetting all emulators"
;; ;;
"Reset Tools" )
tools_init
configurator_process_complete_dialog "resetting the tools menu"
;;
"Reset All" ) "Reset All" )
zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \ zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \ --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
@ -558,11 +551,11 @@ configurator_check_bios_files_basic() {
do do
bios_file_found="No" bios_file_found="No"
bios_hash_matched="No" bios_hash_matched="No"
if [[ -f "$bios_dir/$bios_subdir$bios_file" ]]; then if [[ -f "$bios_folder/$bios_subdir$bios_file" ]]; then
bios_file_found="Yes" bios_file_found="Yes"
if [[ $bios_hash == "Unknown" ]]; then if [[ $bios_hash == "Unknown" ]]; then
bios_hash_matched="Unknown" bios_hash_matched="Unknown"
elif [[ $(md5sum "$bios_dir/$bios_subdir$bios_file" | awk '{ print $1 }') == "$bios_hash" ]]; then elif [[ $(md5sum "$bios_folder/$bios_subdir$bios_file" | awk '{ print $1 }') == "$bios_hash" ]]; then
bios_hash_matched="Yes" bios_hash_matched="Yes"
fi fi
fi fi
@ -585,11 +578,11 @@ configurator_check_bios_files_advanced() {
do do
bios_file_found="No" bios_file_found="No"
bios_hash_matched="No" bios_hash_matched="No"
if [[ -f "$bios_dir/$bios_subdir$bios_file" ]]; then if [[ -f "$bios_folder/$bios_subdir$bios_file" ]]; then
bios_file_found="Yes" bios_file_found="Yes"
if [[ $bios_hash == "Unknown" ]]; then if [[ $bios_hash == "Unknown" ]]; then
bios_hash_matched="Unknown" bios_hash_matched="Unknown"
elif [[ $(md5sum "$bios_dir/$bios_subdir$bios_file" | awk '{ print $1 }') == "$bios_hash" ]]; then elif [[ $(md5sum "$bios_folder/$bios_subdir$bios_file" | awk '{ print $1 }') == "$bios_hash" ]]; then
bios_hash_matched="Yes" bios_hash_matched="Yes"
fi fi
fi fi