commit c7f40c7
Devine Lu Linvega
·
2025-05-18 17:53:19 +0000 UTC
parent e028db8
console_input does not return a value
1 files changed,
+3,
-3
+3,
-3
1@@ -366,7 +366,7 @@ static void
2 console_input(int c, unsigned int type)
3 {
4 dev[0x12] = c, dev[0x17] = type;
5- if(console_vector)
6+ if(console_vector && !dev[0x0f])
7 uxn_eval(console_vector);
8 }
9
10@@ -685,7 +685,7 @@ main(int argc, char **argv)
11 {
12 int i = 1;
13 if(argc == 2 && argv[1][0] == '-' && argv[1][1] == 'v')
14- return !fprintf(stdout, "Uxn11 - Varvara Emulator(cli), 17 May 2025.\n");
15+ return !fprintf(stdout, "Uxn11 - Varvara Emulator(cli), 18 May 2025.\n");
16 else if(argc == 1)
17 return !fprintf(stdout, "usage: %s [-v] file.rom [args..]\n", argv[0]);
18 else if(!system_boot(argv[i++], argc > 2))
19@@ -698,7 +698,7 @@ main(int argc, char **argv)
20 console_input('\n', i == argc - 1 ? CONSOLE_END : CONSOLE_EOA);
21 }
22 while(!dev[0x0f] && !feof(stdin))
23- console_input(fgetc(stdin), 1);
24+ console_input(fgetc(stdin), CONSOLE_STD);
25 console_input(0, CONSOLE_END);
26 }
27 return dev[0x0f] & 0x7f;