From a84854cb290f8e3e767c7dacaa3b4eecb917b94b Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 16 Feb 2024 09:14:55 -0800 Subject: [PATCH] Exit when no console vector --- ref/uxn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/uxn.c b/ref/uxn.c index 866b0ee..105a44f 100644 --- a/ref/uxn.c +++ b/ref/uxn.c @@ -126,7 +126,7 @@ main(int argc, char **argv) fread(&u.ram[0x0100], 0xff00, 1, f); fclose(f); u.dev[0x17] = argc - i; - if(uxn_eval(&u, 0x0100)) { + if(uxn_eval(&u, 0x0100) && (u.dev[0x10] << 8 | u.dev[0x11])) { for(; i < argc; i++) { char *p = argv[i]; while(*p) console_input(&u, *p++, 0x2);