mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-29 19:45:38 +00:00
es_settings.xml specific fixes to patch engine
This commit is contained in:
parent
46a050b5e8
commit
dad928936c
12
functions.sh
12
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
|
||||
|
|
Loading…
Reference in a new issue