From b2ec1a78d20d3bb779074f10cddfac34f9d8e24a Mon Sep 17 00:00:00 2001 From: zongor Date: Tue, 2 Jun 2026 21:28:57 -0700 Subject: [PATCH] add rom built check for faster tests --- cli | 6 ++++-- gui | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cli b/cli index 3dc3e83..7f886f4 100755 --- a/cli +++ b/cli @@ -22,8 +22,10 @@ fi case $EMIT in "uxn") - ./out/$ARCH/undar -emit=uxn $1 > ./out/tmp.tal - $(which uxncli) $HOME/roms/uxn/drifblim.rom ./out/tmp.tal ./out/$1.rom 2> /dev/null + if [ ! -f "./out/$1.rom" ]; then + ./out/$ARCH/undar -emit=uxn $1 > ./out/tmp.tal + $(which uxncli) $HOME/roms/uxn/drifblim.rom ./out/tmp.tal ./out/$1.rom 2> /dev/null + fi $(which uxncli) ./out/$1.rom ;; esac diff --git a/gui b/gui index 756095f..40b5735 100755 --- a/gui +++ b/gui @@ -22,8 +22,10 @@ fi case $EMIT in "uxn") - ./out/$ARCH/undar -emit=uxn $1 > ./out/tmp.tal - $(which uxncli) $HOME/roms/uxn/drifblim.rom ./out/tmp.tal ./out/$1.rom 2> /dev/null + if [ ! -f "./out/$1.rom" ]; then + ./out/$ARCH/undar -emit=uxn $1 > ./out/tmp.tal + $(which uxncli) $HOME/roms/uxn/drifblim.rom ./out/tmp.tal ./out/$1.rom 2> /dev/null + fi $(which uxn11) ./out/$1.rom ;; esac