From 57396faa94e5c85f7d28aa06ea4261609f77d097 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Thu, 15 Feb 2024 15:31:16 -0800 Subject: [PATCH] uxncli will exit if no console vector --- src/uxncli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uxncli.c b/src/uxncli.c index 91613b5..5f0b384 100644 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -51,12 +51,12 @@ main(int argc, char **argv) if(i == argc) return system_error("usage:", "uxncli [-v] file.rom [args..]"); if(argv[i][0] == '-' && argv[i][1] == 'v') - return system_error("Uxncli - Varvara Emulator(CLI)", "13 Jan 2024."); + return system_error("Uxncli - Varvara Emulator(CLI)", "15 Feb 2024."); if(!system_init(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), argv[i++])) return system_error("Init", "Failed to initialize uxn."); /* eval */ u.dev[0x17] = argc - i; - if(uxn_eval(&u, PAGE_PROGRAM)) { + if(uxn_eval(&u, PAGE_PROGRAM) && PEEK2(u.dev + 0x10)) { console_listen(&u, i, argc, argv); while(!u.dev[0x0f]) { int c = fgetc(stdin);