From dad928936cf453163c33fd7e16f36eec61b65f8d Mon Sep 17 00:00:00 2001 From: icenine451 Date: Tue, 11 Apr 2023 11:20:45 -0400 Subject: [PATCH] es_settings.xml specific fixes to patch engine --- functions.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions.sh b/functions.sh index 3d5ff6ec..a2c29c27 100644 --- a/functions.sh +++ b/functions.sh @@ -359,8 +359,8 @@ set_setting_value() { fi ;; - "emulationstation" ) - sed -i "s%^$setting_name_to_change\" \" value=\".*\"%$setting_name_to_change\" \" value=\"$setting_value_to_change\"" $1 + "es_settings" ) + sed -i 's^'"$setting_name_to_change"'" value=".*"^'"$setting_name_to_change"'" value="'"$setting_value_to_change"'"^' $1 ;; esac @@ -374,8 +374,8 @@ get_setting_name() { case $2 in - "emulationstation" ) - echo "$current_setting_line" | grep -o -P "(?<=name\=\").*(?=\" value)" + "es_settings" ) + echo ''"$current_setting_line"'' | grep -o -P '(?<=name\=\").*(?=\" value)' ;; "rpcs3" ) @@ -430,8 +430,8 @@ get_setting_value() { fi ;; - "emulationstation" ) - echo $(grep -o -P "(?<=^$current_setting_name\" value=\").*(?=\")" $1) + "es_settings" ) + echo $(grep -o -P "(?<=$current_setting_name\" value=\").*(?=\")" $1) ;; esac