From 4edeac2dc13aba7a4dd36a473dbf3e712bd75137 Mon Sep 17 00:00:00 2001 From: xargon Date: Mon, 18 Jul 2022 19:32:05 +0200 Subject: [PATCH] XEMU: preparing the image only if is missing --- retrodeck.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/retrodeck.sh b/retrodeck.sh index b388b684..26b8fdca 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -151,10 +151,13 @@ standalones_init() { mkdir -pv $rdhome/saves/xemu cp -fv $emuconfigs/xemu.toml /var/data/xemu/xemu.toml sed -i 's#/home/deck/retrodeck#'$rdhome'#g' /var/data/xemu/xemu.toml - # Preparing HD dummy Image - wget "https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip" -P $rdhome/bios/ - unzip $rdhome/bios/xbox_hdd.qcow2.zip $rdhome/bios/ - rm -rfv $rdhome/bios/xbox_hdd.qcow2.zip + # Preparing HD dummy Image if the image is not found + if [ ! -f $rdhome/bios/xbox_hdd.qcow2 ] + then + wget "https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip" -P $rdhome/bios/ + unzip $rdhome/bios/xbox_hdd.qcow2.zip $rdhome/bios/ + rm -rfv $rdhome/bios/xbox_hdd.qcow2.zip + fi # PICO-8 # Moved PICO-8 stuff in the finit as only it knows here roms folders is