Add new variables to be written to rd_conf

This commit is contained in:
icenine451 2022-10-01 09:58:05 -04:00
parent f4c5f2c987
commit 4f8f771f15

View file

@ -34,6 +34,16 @@ conf_write() {
sed -i "s%roms_folder=.*%roms_folder=$roms_folder%" "$rd_conf" sed -i "s%roms_folder=.*%roms_folder=$roms_folder%" "$rd_conf"
fi fi
if [ ! -z "$saves_folder" ]
then
sed -i "s%saves_folder=.*%saves_folder=$saves_folder%" "$rd_conf"
fi
if [ ! -z "$states_folder" ]
then
sed -i "s%states_folder=.*%states_folder=$states_folder%" "$rd_conf"
fi
if [ ! -z "$media_folder" ] if [ ! -z "$media_folder" ]
then then
sed -i "s%media_folder=.*%media_folder=$media_folder%" "$rd_conf" sed -i "s%media_folder=.*%media_folder=$media_folder%" "$rd_conf"