mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
SD card path check to retrodeck folder check
Merge pull request #229 from icenine451/cooker-0.6.1b-icenine451
This commit is contained in:
commit
66e0997879
12
global.sh
12
global.sh
|
@ -104,12 +104,12 @@ else
|
||||||
echo "Loading it"
|
echo "Loading it"
|
||||||
source "$rd_conf"
|
source "$rd_conf"
|
||||||
|
|
||||||
# Update SD card path if changed from SteamOS update
|
# Verify rdhome is where it is supposed to be.
|
||||||
if [[ ! -d $sdcard && "$(ls -A /run/media/deck/)" ]]; then
|
if [[ ! -d $rdhome ]]; then
|
||||||
prev_sd_path=$sdcard
|
prev_home_path=$rdhome
|
||||||
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\"."
|
configurator_generic_dialog "The RetroDECK data folder was not found in the expected location.\nThis may happen when SteamOS is updated.\n\nPlease browse to the current location of the \"retrodeck\" folder."
|
||||||
new_sd_path=$(browse "SD Card Location")
|
new_home_path=$(browse "RetroDECK folder location")
|
||||||
sed -i 's#'$prev_sd_path'#'$new_sd_path'#g' $rd_conf
|
sed -i 's#'$prev_home_path'#'$new_home_path'#g' $rd_conf
|
||||||
source "$rd_conf"
|
source "$rd_conf"
|
||||||
emulators_post_move
|
emulators_post_move
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue