mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-26 07:55:37 +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 "RetroDECK config file not found in $rd_conf"
|
||||||
echo "Initializing"
|
echo "Initializing"
|
||||||
touch $rd_conf
|
touch $rd_conf
|
||||||
read -p "Press enter to continue" #DEBUG
|
|
||||||
|
|
||||||
# Variables to manage: adding a variable here means adding it to conf_write()
|
# Variables to manage: adding a variable here means adding it to conf_write()
|
||||||
echo "#!/bin/bash" >> $rd_conf
|
echo "#!/bin/bash" >> $rd_conf
|
||||||
|
@ -25,7 +24,7 @@ conf_init() {
|
||||||
echo "rdhome=$rdhome" >> $rd_conf
|
echo "rdhome=$rdhome" >> $rd_conf
|
||||||
|
|
||||||
# default roms folder location (internal)
|
# default roms folder location (internal)
|
||||||
roms_folder="$rdhome/roms"
|
roms_folder="$roms_folder"
|
||||||
echo "roms_folder=$roms_folder" >> $rd_conf
|
echo "roms_folder=$roms_folder" >> $rd_conf
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,7 +38,7 @@ conf_init() {
|
||||||
conf_write() {
|
conf_write() {
|
||||||
# writes the variables in the retrodeck config file
|
# 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
|
# 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
|
if [ ! -z "$version" ] #if the variable is not null then I update it
|
||||||
|
@ -54,7 +53,7 @@ conf_write() {
|
||||||
|
|
||||||
if [ ! -z "$roms_folder" ]
|
if [ ! -z "$roms_folder" ]
|
||||||
then
|
then
|
||||||
sed -i "s%rdhome=.*%rdhome=$roms_folder%" $rd_conf
|
sed -i "s%roms_folder=.*%roms_folder=$roms_folder%" $rd_conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
|
@ -191,14 +191,14 @@ ra_init() {
|
||||||
mv -fv $rdhome/bios/PPSSPP/flash0/font $rdhome/bios/PPSSPP/flash0/font.bak
|
mv -fv $rdhome/bios/PPSSPP/flash0/font $rdhome/bios/PPSSPP/flash0/font.bak
|
||||||
fi
|
fi
|
||||||
mkdir -p $rdhome/bios/PPSSPP
|
mkdir -p $rdhome/bios/PPSSPP
|
||||||
if [ ! -f "$rdhome/bios/PPSSPP/ppge_atlas.zim" ]
|
#if [ ! -f "$rdhome/bios/PPSSPP/ppge_atlas.zim" ]
|
||||||
then
|
#then
|
||||||
wget "https://github.com/hrydgard/ppsspp/archive/refs/heads/master.zip" -P $rdhome/bios/PPSSPP
|
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/
|
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/master.zip"
|
||||||
rm -rfv "$rdhome/bios/PPSSPP/ppsspp-master"
|
rm -rfv "$rdhome/bios/PPSSPP/ppsspp-master"
|
||||||
fi
|
#fi
|
||||||
if [ -d $rdhome/bios/PPSSPP/flash0/font.bak ]
|
if [ -d $rdhome/bios/PPSSPP/flash0/font.bak ]
|
||||||
then
|
then
|
||||||
mv -fv $rdhome/bios/PPSSPP/flash0/font.bak $rdhome/bios/PPSSPP/flash0/font
|
mv -fv $rdhome/bios/PPSSPP/flash0/font.bak $rdhome/bios/PPSSPP/flash0/font
|
||||||
|
|
Loading…
Reference in a new issue