mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-16 19:35:39 +00:00
Fix Unzips, removed redundant conf_write
This commit is contained in:
parent
d0591a08b3
commit
1d0480c473
11
functions.sh
11
functions.sh
|
@ -577,13 +577,14 @@ xemu_init() {
|
||||||
echo "Initializing XEMU"
|
echo "Initializing XEMU"
|
||||||
echo "------------------------"
|
echo "------------------------"
|
||||||
mkdir -pv $rdhome/saves/xbox/xemu/
|
mkdir -pv $rdhome/saves/xbox/xemu/
|
||||||
|
mkdir -pv /var/data/xemu/
|
||||||
cp -fv $emuconfigs/xemu.toml /var/data/xemu/xemu.toml
|
cp -fv $emuconfigs/xemu.toml /var/data/xemu/xemu.toml
|
||||||
sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/data/xemu/xemu.toml
|
sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/data/xemu/xemu.toml
|
||||||
# Preparing HD dummy Image if the image is not found
|
# Preparing HD dummy Image if the image is not found
|
||||||
if [ ! -f $rdhome/bios/xbox_hdd.qcow2 ]
|
if [ ! -f $rdhome/bios/xbox_hdd.qcow2 ]
|
||||||
then
|
then
|
||||||
wget "https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip" -P $rdhome/bios/
|
wget "https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip" -P $rdhome/bios/
|
||||||
unzip -q $rdhome/bios/xbox_hdd.qcow2.zip $rdhome/bios/
|
unzip -q $rdhome/bios/xbox_hdd.qcow2.zip -d $rdhome/bios/
|
||||||
rm -rfv $rdhome/bios/xbox_hdd.qcow2.zip
|
rm -rfv $rdhome/bios/xbox_hdd.qcow2.zip
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -603,7 +604,7 @@ duckstation_init() {
|
||||||
echo "------------------------"
|
echo "------------------------"
|
||||||
mkdir -p /var/config/duckstation/
|
mkdir -p /var/config/duckstation/
|
||||||
cp -fv $emuconfigs/duckstation/* /var/config/duckstation
|
cp -fv $emuconfigs/duckstation/* /var/config/duckstation
|
||||||
sed -i 's#/home/deck/retrodeck/bios#'$rdhome/bios'#g' /var/config/ppsspp/PSP/SYSTEM/settings.ini
|
sed -i 's#/home/deck/retrodeck/bios#'$rdhome/bios'#g' /var/config/duckstation/settings.ini
|
||||||
}
|
}
|
||||||
|
|
||||||
standalones_init() {
|
standalones_init() {
|
||||||
|
@ -728,7 +729,7 @@ ra_init() {
|
||||||
echo "Initializing MSX / SVI / ColecoVision / SG-1000 LIBRETRO"
|
echo "Initializing MSX / SVI / ColecoVision / SG-1000 LIBRETRO"
|
||||||
echo "-----------------------------------------------------------"
|
echo "-----------------------------------------------------------"
|
||||||
wget "http://bluemsx.msxblue.com/rel_download/blueMSXv282full.zip" -P $rdhome/bios/MSX
|
wget "http://bluemsx.msxblue.com/rel_download/blueMSXv282full.zip" -P $rdhome/bios/MSX
|
||||||
unzip -q "$rdhome/bios/MSX/blueMSXv282full.zip" $rdhome/bios/MSX
|
unzip -q "$rdhome/bios/MSX/blueMSXv282full.zip" -d $rdhome/bios/MSX
|
||||||
mv -rfv $rdhome/bios/MSX/Databases $rdhome/bios/Databases
|
mv -rfv $rdhome/bios/MSX/Databases $rdhome/bios/Databases
|
||||||
mv -rfv $rdhome/bios/MSX/Machines $rdhome/bios/Machines
|
mv -rfv $rdhome/bios/MSX/Machines $rdhome/bios/Machines
|
||||||
rm -rfv $rdhome/bios/MSX
|
rm -rfv $rdhome/bios/MSX
|
||||||
|
@ -868,8 +869,8 @@ finit() {
|
||||||
) |
|
) |
|
||||||
zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \
|
zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \
|
||||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
--title "RetroDECK Finishing Upgrade" \
|
--title "RetroDECK Finishing Initialization" \
|
||||||
--text="RetroDECK is finishing the upgrade process, please wait."
|
--text="RetroDECK is finishing the initial setup process, please wait."
|
||||||
create_lock
|
create_lock
|
||||||
|
|
||||||
zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
|
zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap \
|
||||||
|
|
|
@ -1004,5 +1004,5 @@ modules:
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
- type: git
|
- type: git
|
||||||
url: https://github.com/XargonWan/RetroDECK.git
|
url: https://github.com/icenine451/RetroDECK.git
|
||||||
branch: cooker-0.6.0b
|
branch: cooker-configurator
|
|
@ -75,7 +75,6 @@ then
|
||||||
then
|
then
|
||||||
echo "Config file's version is $version but the actual version is $hard_version"
|
echo "Config file's version is $version but the actual version is $hard_version"
|
||||||
post_update # Executing post update script
|
post_update # Executing post update script
|
||||||
conf_write # Writing variables in the config file (sourced from global.sh)
|
|
||||||
start_retrodeck
|
start_retrodeck
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -84,7 +83,6 @@ then
|
||||||
else
|
else
|
||||||
echo "Lockfile not found"
|
echo "Lockfile not found"
|
||||||
finit # Executing First/Force init
|
finit # Executing First/Force init
|
||||||
conf_write # Writing variables in the config file (sourced from global.sh)
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue