Fixed usage
This commit is contained in:
parent
e2a26e3103
commit
d8e78ffef0
|
@ -201,7 +201,7 @@ main(int argc, char **argv)
|
||||||
struct pollfd fds[3];
|
struct pollfd fds[3];
|
||||||
static const struct itimerspec screen_tspec = {{0, 16666666}, {0, 16666666}};
|
static const struct itimerspec screen_tspec = {{0, 16666666}, {0, 16666666}};
|
||||||
if(argc < 2)
|
if(argc < 2)
|
||||||
return system_error("usage", "uxn11 game.rom args");
|
return system_error("usage", "uxn11 file.rom [args...]");
|
||||||
rom_path = argv[1];
|
rom_path = argv[1];
|
||||||
if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))
|
if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))
|
||||||
return system_error("boot", "Failed");
|
return system_error("boot", "Failed");
|
||||||
|
|
|
@ -482,7 +482,7 @@ main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
FILE *src, *dst;
|
FILE *src, *dst;
|
||||||
if(argc < 3)
|
if(argc < 3)
|
||||||
return !error("usage", "input.tal output.rom");
|
return !error("usage", "uxnasm input.tal output.rom");
|
||||||
if(!(src = fopen(argv[1], "r")))
|
if(!(src = fopen(argv[1], "r")))
|
||||||
return !error("Invalid input", argv[1]);
|
return !error("Invalid input", argv[1]);
|
||||||
if(!assemble(src))
|
if(!assemble(src))
|
||||||
|
|
|
@ -47,7 +47,7 @@ main(int argc, char **argv)
|
||||||
Uxn u;
|
Uxn u;
|
||||||
int i = 1;
|
int i = 1;
|
||||||
if(i == argc)
|
if(i == argc)
|
||||||
return system_error("usage", "uxncli game.rom args");
|
return system_error("usage", "uxncli file.rom [args..]");
|
||||||
if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))
|
if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))
|
||||||
return system_error("Boot", "Failed");
|
return system_error("Boot", "Failed");
|
||||||
if(!system_load(&u, argv[i++]))
|
if(!system_load(&u, argv[i++]))
|
||||||
|
|
Loading…
Reference in New Issue