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