uxn

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

commit 1014229b8ce1378c3f38d21922eb98ce93ff7625
parent c11dcc377117685d1737ce0eb06a5197c2c8f7f9
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Mon, 13 Feb 2023 09:33:57 -0800

(uxncli)Use System/halt as exit code

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

diff --git a/src/uxncli.c b/src/uxncli.c @@ -23,7 +23,7 @@ static int emu_error(char *msg, const char *err) { fprintf(stderr, "Error %s: %s\n", msg, err); - return 0; + return 1; } static int @@ -85,7 +85,7 @@ main(int argc, char **argv) if(!system_load(&u, argv[1])) return emu_error("Load", "Failed"); if(!uxn_eval(&u, PAGE_PROGRAM)) - return emu_error("Init", "Failed"); + return u.dev[0x0f] & 0x7f; for(i = 2; i < argc; i++) { char *p = argv[i]; while(*p) console_input(&u, *p++); @@ -96,5 +96,5 @@ main(int argc, char **argv) if(c != EOF) console_input(&u, (Uint8)c); } - return 0; + return u.dev[0x0f] & 0x7f; }