From d7c33138d54a346c31607883ecf08e27c7c1ba30 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 22 Dec 2022 10:52:22 -0500 Subject: [PATCH] More SD card path change actions --- global.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/global.sh b/global.sh index 5d19b58d..f44ea40d 100755 --- a/global.sh +++ b/global.sh @@ -106,9 +106,11 @@ else # Update SD card path if changed from SteamOS update if [[ ! -d $sdcard && "$(ls -A /run/media/deck/)" ]]; then + prev_sd_path=$sdcard configurator_generic_dialog "The SD card was not found in the expected location.\nThis may happen when SteamOS is updated.\n\nPlease browse to the current location of the SD card.\n\nIf you are not using an SD card, please click \"Cancel\"." - sdcard=$(browse "SD Card Location") - conf_write + new_sd_path=$(browse "SD Card Location") + sed -i 's#'$prev_sd_path'#'$new_sd_path'#g' $rd_conf source "$rd_conf" + emulators_post_move fi fi