mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
Fixed a bug in the variables writing
This commit is contained in:
parent
353ad896c5
commit
699ddc208f
|
@ -11,7 +11,6 @@ conf_init() {
|
|||
echo "RetroDECK config file not found in $rd_conf"
|
||||
echo "Initializing"
|
||||
touch $rd_conf
|
||||
read -p "Press enter to continue" #DEBUG
|
||||
|
||||
# Variables to manage: adding a variable here means adding it to conf_write()
|
||||
echo "#!/bin/bash" >> $rd_conf
|
||||
|
@ -25,7 +24,7 @@ conf_init() {
|
|||
echo "rdhome=$rdhome" >> $rd_conf
|
||||
|
||||
# default roms folder location (internal)
|
||||
roms_folder="$rdhome/roms"
|
||||
roms_folder="$roms_folder"
|
||||
echo "roms_folder=$roms_folder" >> $rd_conf
|
||||
|
||||
|
||||
|
@ -39,7 +38,7 @@ conf_init() {
|
|||
conf_write() {
|
||||
# writes the variables in the retrodeck config file
|
||||
|
||||
echo "Writing the config file"
|
||||
echo "Writing the config file: $rd_conf"
|
||||
|
||||
# TODO: this can be optimized with a while and a list of variables to check
|
||||
if [ ! -z "$version" ] #if the variable is not null then I update it
|
||||
|
@ -54,7 +53,7 @@ conf_write() {
|
|||
|
||||
if [ ! -z "$roms_folder" ]
|
||||
then
|
||||
sed -i "s%rdhome=.*%rdhome=$roms_folder%" $rd_conf
|
||||
sed -i "s%roms_folder=.*%roms_folder=$roms_folder%" $rd_conf
|
||||
fi
|
||||
|
||||
}
|
|
@ -191,14 +191,14 @@ ra_init() {
|
|||
mv -fv $rdhome/bios/PPSSPP/flash0/font $rdhome/bios/PPSSPP/flash0/font.bak
|
||||
fi
|
||||
mkdir -p $rdhome/bios/PPSSPP
|
||||
if [ ! -f "$rdhome/bios/PPSSPP/ppge_atlas.zim" ]
|
||||
then
|
||||
#if [ ! -f "$rdhome/bios/PPSSPP/ppge_atlas.zim" ]
|
||||
#then
|
||||
wget "https://github.com/hrydgard/ppsspp/archive/refs/heads/master.zip" -P $rdhome/bios/PPSSPP
|
||||
unzip "$rdhome/bios/PPSSPP/master.zip" -d $rdhome/bios/PPSSPP/
|
||||
mv "$rdhome/bios/PPSSPP/ppsspp-master/assets"* "$rdhome/bios/PPSSPP/"
|
||||
mv "$rdhome/bios/PPSSPP/ppsspp-master/assets/"* "$rdhome/bios/PPSSPP/"
|
||||
rm -rfv "$rdhome/bios/PPSSPP/master.zip"
|
||||
rm -rfv "$rdhome/bios/PPSSPP/ppsspp-master"
|
||||
fi
|
||||
#fi
|
||||
if [ -d $rdhome/bios/PPSSPP/flash0/font.bak ]
|
||||
then
|
||||
mv -fv $rdhome/bios/PPSSPP/flash0/font.bak $rdhome/bios/PPSSPP/flash0/font
|
||||
|
|
Loading…
Reference in a new issue