(uxn11.c, uxncli.c) Exit after printing version on '-v' flag
Also bumps version in uxn11 and uxncli to today's date.
This commit is contained in:
parent
e0be0f0af7
commit
8b8e51c55d
|
@ -266,8 +266,8 @@ main(int argc, char **argv)
|
||||||
int i = 1;
|
int i = 1;
|
||||||
char *rom;
|
char *rom;
|
||||||
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
|
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
|
||||||
fprintf(stdout, "Uxn11 - Varvara Emulator, 17 Aug 2024.\n");
|
fprintf(stdout, "Uxn11 - Varvara Emulator, 18 Aug 2024.\n");
|
||||||
i++;
|
exit(0);
|
||||||
}
|
}
|
||||||
rom = i == argc ? "boot.rom" : argv[i++];
|
rom = i == argc ? "boot.rom" : argv[i++];
|
||||||
if(!system_boot((Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), rom))
|
if(!system_boot((Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), rom))
|
||||||
|
|
|
@ -68,8 +68,8 @@ main(int argc, char **argv)
|
||||||
int i = 1;
|
int i = 1;
|
||||||
char *rom;
|
char *rom;
|
||||||
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
|
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
|
||||||
fprintf(stdout, "Uxncli - Console Varvara Emulator, 17 Aug 2024.\n");
|
fprintf(stdout, "Uxncli - Console Varvara Emulator, 18 Aug 2024.\n");
|
||||||
i++;
|
exit(0);
|
||||||
}
|
}
|
||||||
rom = i == argc ? "boot.rom" : argv[i++];
|
rom = i == argc ? "boot.rom" : argv[i++];
|
||||||
if(!system_boot((Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), rom))
|
if(!system_boot((Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), rom))
|
||||||
|
|
Loading…
Reference in New Issue