uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 57396faa94e5c85f7d28aa06ea4261609f77d097
parent 8abb621b12df11f7975ad1485d556ebb8bcb2042
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Thu, 15 Feb 2024 15:31:16 -0800

uxncli will exit if no console vector

Diffstat:
Msrc/uxncli.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);