mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-30 12:05: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
|
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
|
||||||
|
|
Loading…
Reference in a new issue