From ae82768621b300e2b6aca23ed84a0482f309ffc2 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Sat, 11 Mar 2023 11:15:16 -0500 Subject: [PATCH] Add Primehack defaults and option in patch engine --- functions.sh | 4 ++-- global.sh | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/functions.sh b/functions.sh index c6451115..1e86d42d 100644 --- a/functions.sh +++ b/functions.sh @@ -200,7 +200,7 @@ set_setting_value() { fi ;; - "dolphin" | "duckstation" | "pcsx2" | "ppsspp" | "xemu" ) + "dolphin" | "duckstation" | "pcsx2" | "ppsspp" | "primehack" | "xemu" ) if [[ -z $current_section_name ]]; then sed -i 's^'"$setting_name_to_change"' =.*^'"$setting_name_to_change"' = '"$setting_value_to_change"'^' $1 else @@ -271,7 +271,7 @@ get_setting_value() { fi ;; - "dolphin" | "duckstation" | "pcsx2" | "ppsspp" | "xemu" ) # For files with this syntax - setting_name = setting_value + "dolphin" | "duckstation" | "pcsx2" | "ppsspp" | "primehack" | "xemu" ) # For files with this syntax - setting_name = setting_value if [[ -z $current_section_name ]]; then echo $(grep -o -P "(?<=^$current_setting_name = ).*" $1) else diff --git a/global.sh b/global.sh index b659e367..a4787f91 100755 --- a/global.sh +++ b/global.sh @@ -54,6 +54,14 @@ pcsx2vmconf="/var/config/PCSX2/inis/PCSX2_vm.ini" pcsx2qtconf="/var/config/PCSX2/inis/PCSX2.ini" +# Primehack config files + +primehackconf="/var/config/primehack/Dolphin.ini" +primehackgcpadconf="/var/config/primehack/GCPadNew.ini" +primehackgfxconf="/var/config/primehack/GFX.ini" +primehackhkconf="/var/config/primehack/Hotkeys.ini" +primehackqtconf="/var/config/primehack/Qt.ini" + # We moved the lockfile in /var/config/retrodeck in order to solve issue #53 - Remove in a few versions if [ -f "$HOME/retrodeck/.lock" ] then @@ -82,7 +90,7 @@ then configurator_generic_dialog "The SD card was not found in the expected location.\nThis may happen when SteamOS is updated.\n\nPlease browse to the current location of the SD card.\n\nIf you are not using an SD card, please click \"Cancel\"." default_sd=$(directory_browse "SD Card Location") fi - + cp $rd_defaults $rd_conf # Load default settings set_setting_value $rd_conf "version" "$version" retrodeck # Set current version for new installs set_setting_value $rd_conf "sdcard" "$default_sd" retrodeck # Set SD card location if default path has changed