Exit when no console vector

This commit is contained in:
Devine Lu Linvega 2024-02-16 09:14:55 -08:00
parent 6780c676e3
commit a84854cb29
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ main(int argc, char **argv)
fread(&u.ram[0x0100], 0xff00, 1, f); fread(&u.ram[0x0100], 0xff00, 1, f);
fclose(f); fclose(f);
u.dev[0x17] = argc - i; 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++) { for(; i < argc; i++) {
char *p = argv[i]; char *p = argv[i];
while(*p) console_input(&u, *p++, 0x2); while(*p) console_input(&u, *p++, 0x2);