0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-10 16:25:05 +00:00

(uxnemu) Fixes issue where non-zero console/type occurs even when empty, fixed by hikari_no_yume

This commit is contained in:
Devine Lu Linvega 2023-06-29 14:23:16 -07:00
parent f5c816d215
commit ff6d9e39ca

View file

@ -515,9 +515,9 @@ main(int argc, char **argv)
/* load rom */ /* load rom */
if(i == argc) if(i == argc)
return system_error("usage", "uxnemu [-2x][-3x] file.rom [args...]"); return system_error("usage", "uxnemu [-2x][-3x] file.rom [args...]");
if(!start(&u, argv[i], argc - i))
return system_error("Start", "Failed");
rom_path = argv[i++]; rom_path = argv[i++];
if(!start(&u, rom_path, argc - i))
return system_error("Start", "Failed");
/* read arguments */ /* read arguments */
for(; i < argc; i++) { for(; i < argc; i++) {
char *p = argv[i]; char *p = argv[i];