From 4269f9c116d1769ecad2ec2ed0de03154cbc367e Mon Sep 17 00:00:00 2001 From: Xargon Date: Fri, 20 May 2022 15:37:43 +0900 Subject: [PATCH] PICO-8: fixed roms creation logic, roms can be shown but not started from ES-DE --- retrodeck.sh | 13 ++++++++----- tools/start-splore.sh | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/retrodeck.sh b/retrodeck.sh index c0cf1c73..13282d77 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -111,7 +111,7 @@ standalones_init() { cp -fv $emuconfigs/config.yml /var/config/rpcs3/ # PICO-8 - mkdir -pv $roms_folder/pico-8 + # Moved PICO-8 stuff in the finit as only it knows here roms folders is } @@ -197,6 +197,9 @@ finit() { dir_prep "$rdhome/.downloaded_media" "/var/config/emulationstation/.emulationstation/downloaded_media" dir_prep "$rdhome/.themes" "/var/config/emulationstation/.emulationstation/themes" + # PICO-8 + dir_prep "$roms_folder/pico-8" "$rdhome/bios/pico-8/bbs/carts" #this is the folder where pico-8 is saving the carts + ra_init standalones_init tools_init @@ -234,10 +237,6 @@ https://retrodeck.net cat /var/config/retrodeck/version exit ;; - --reset*) - rm -f "$lockfile" - shift # past argument with no value - ;; --reset-ra*) ra_init shift # past argument with no value @@ -250,6 +249,10 @@ https://retrodeck.net tools_init shift # past argument with no value ;; + --reset*) + rm -f "$lockfile" + shift # past argument with no value + ;; -*|--*) echo "Unknown option $i" exit 1 diff --git a/tools/start-splore.sh b/tools/start-splore.sh index 74dd11de..a1dd4877 100644 --- a/tools/start-splore.sh +++ b/tools/start-splore.sh @@ -6,5 +6,5 @@ elif [ -d /run/media/mmcblk0p1/retrodeck/roms/pico-8 ]; then pico_folder=/run/media/mmcblk0p1/retrodeck/roms/pico-8 fi -echo $pico_folder >> ~/retrodeck/.retrodeck.log +echo $pico_folder > ~/retrodeck/.retrodeck.log ~/retrodeck/bios/pico-8/pico8 -desktop ~/retrodeck/screenshots -windowed 0 -home ~/retrodeck/bios/pico-8 -root_path $pico_folder -splore >> ~/retrodeck/.retrodeck.log