commit 453f49191817294989d7bbd7a02a4b8c47bfdae0
parent 72e23f0260a838287787b9cd330784fdbbef4769
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Mon, 17 Apr 2023 09:59:00 -0700
(uxnemu) Display new zoom values in usage
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/uxncli.c b/src/uxncli.c
@@ -52,16 +52,16 @@ int
main(int argc, char **argv)
{
Uxn u;
- int i;
+ int i = 1;
if(argc < 2)
return emu_error("Usage", "uxncli game.rom args");
if(!uxn_boot(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8))))
return emu_error("Boot", "Failed");
- if(!system_load(&u, argv[1]))
+ if(!system_load(&u, argv[i++]))
return emu_error("Load", "Failed");
if(!uxn_eval(&u, PAGE_PROGRAM))
return u.dev[0x0f] & 0x7f;
- for(i = 2; i < argc; i++) {
+ for(; i < argc; i++) {
char *p = argv[i];
while(*p) console_input(&u, *p++, CONSOLE_ARG);
console_input(&u, '\n', i == argc - 1 ? CONSOLE_END : CONSOLE_EOA);
diff --git a/src/uxnemu.c b/src/uxnemu.c
@@ -502,7 +502,7 @@ main(int argc, char **argv)
set_zoom(DM.w / 1280);
/* load rom */
if(!start(&u, argv[i]))
- return error("usage", "uxnemu [-s scale] file.rom");
+ return error("usage", "uxnemu [-2x][-3x] file.rom");
rom_path = argv[i++];
/* read arguments */
for(; i < argc; i++) {