From 4f8f771f151f0c910ed7e1cbe9ce83a5fb68b109 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Sat, 1 Oct 2022 09:58:05 -0400 Subject: [PATCH] Add new variables to be written to rd_conf --- global.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/global.sh b/global.sh index 6547d9c0..f64efebd 100755 --- a/global.sh +++ b/global.sh @@ -34,6 +34,16 @@ conf_write() { sed -i "s%roms_folder=.*%roms_folder=$roms_folder%" "$rd_conf" 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" ] then sed -i "s%media_folder=.*%media_folder=$media_folder%" "$rd_conf"