(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:
Lobo Torres 2024-08-18 16:47:00 -04:00 committed by Devine Lu Linvega
parent e0be0f0af7
commit 8b8e51c55d
2 changed files with 4 additions and 4 deletions

View File

@ -266,8 +266,8 @@ main(int argc, char **argv)
int i = 1;
char *rom;
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
fprintf(stdout, "Uxn11 - Varvara Emulator, 17 Aug 2024.\n");
i++;
fprintf(stdout, "Uxn11 - Varvara Emulator, 18 Aug 2024.\n");
exit(0);
}
rom = i == argc ? "boot.rom" : argv[i++];
if(!system_boot((Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), rom))

View File

@ -68,8 +68,8 @@ main(int argc, char **argv)
int i = 1;
char *rom;
if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
fprintf(stdout, "Uxncli - Console Varvara Emulator, 17 Aug 2024.\n");
i++;
fprintf(stdout, "Uxncli - Console Varvara Emulator, 18 Aug 2024.\n");
exit(0);
}
rom = i == argc ? "boot.rom" : argv[i++];
if(!system_boot((Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), rom))