es_settings.xml specific fixes to patch engine

This commit is contained in:
icenine451 2023-04-11 11:20:45 -04:00
parent 46a050b5e8
commit dad928936c

View file

@ -359,8 +359,8 @@ set_setting_value() {
fi fi
;; ;;
"emulationstation" ) "es_settings" )
sed -i "s%^$setting_name_to_change\" \" value=\".*\"%$setting_name_to_change\" \" value=\"$setting_value_to_change\"" $1 sed -i 's^'"$setting_name_to_change"'" value=".*"^'"$setting_name_to_change"'" value="'"$setting_value_to_change"'"^' $1
;; ;;
esac esac
@ -374,8 +374,8 @@ get_setting_name() {
case $2 in case $2 in
"emulationstation" ) "es_settings" )
echo "$current_setting_line" | grep -o -P "(?<=name\=\").*(?=\" value)" echo ''"$current_setting_line"'' | grep -o -P '(?<=name\=\").*(?=\" value)'
;; ;;
"rpcs3" ) "rpcs3" )
@ -430,8 +430,8 @@ get_setting_value() {
fi fi
;; ;;
"emulationstation" ) "es_settings" )
echo $(grep -o -P "(?<=^$current_setting_name\" value=\").*(?=\")" $1) echo $(grep -o -P "(?<=$current_setting_name\" value=\").*(?=\")" $1)
;; ;;
esac esac