From 829680032dc53b13df07234bd276261d5c922a19 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 11 Jul 2017 23:10:47 -0400 Subject: [PATCH] CLI: have -s be --save instead of --scale; use -x for --scale. --- README.md | 6 +++--- src/config.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b9db931..dcba95d 100644 --- a/README.md +++ b/README.md @@ -50,13 +50,13 @@ Add or symlink ROMs to `roms/` at your leisure. Note that they must end in `.gg` or `.bin` to be auto-detected. Add `--fullscreen` (`-f`) to enable fullscreen mode, or `--scale ` -(`-s `) to scale the game screen by an integer factor in windowed mode (this +(`-x `) to scale the game screen by an integer factor in windowed mode (this only sets the starting configuration; the window should be resizeable). By default, crater will save cartridge RAM ("battery saves"; these are distinct from save states, which are not yet supported) to a file named `.sav`, where `` is the path to the ROM file. You can set a custom save location -with `--save ` or disable saving entirely with `--no-save`. +with `--save ` (`-s `) or disable saving entirely with `--no-save`. Add `--debug` (`-g`) to show logging information while running. Pass it twice (`-gg`) to show more detailed logs, including an emulator trace. @@ -94,7 +94,7 @@ Status The emulator is almost fully functional, lacking only audio support, a few uncommon CPU instructions, and some advanced graphics features. Most games are -playable with only minor bugs. Future goals include save states and a more +playable with only minor bugs. Future goals include full save states and a more sophisticated debugging mode. The assembler is complete. Future goals include more documentation, macros, and diff --git a/src/config.c b/src/config.c index 5b48fee..1ddd446 100644 --- a/src/config.c +++ b/src/config.c @@ -37,9 +37,9 @@ static void print_help(const char *arg1) "advanced options:\n" " -g, --debug show logging information while running; add twice (-gg)\n" " to show more detailed logs, including an emulator trace\n" -" -s, --scale scale the game screen by an integer factor\n" +" -x, --scale scale the game screen by an integer factor\n" " (applies to windowed mode only; defaults to 4)\n" -" -b, --save save cartridge RAM (\"battery save\") to the given file\n" +" -s, --save save cartridge RAM (\"battery save\") to the given file\n" " (defaults to .sav)\n" " -n, --no-save disable saving cartridge RAM entirely\n" " -a, --assemble []\n" @@ -230,7 +230,7 @@ static int parse_opt_arg(Config *config, Arguments *args, const char *arg) else if (arg_check(arg, "f", "fullscreen")) { config->fullscreen = true; } - else if (arg_check(arg, "s", "scale")) { + else if (arg_check(arg, "x", "scale")) { const char *next = consume_next(args); if (!next) { ERROR("the scale option requires an argument") @@ -243,7 +243,7 @@ static int parse_opt_arg(Config *config, Arguments *args, const char *arg) } config->scale = scale; } - else if (arg_check(arg, "b", "save")) { + else if (arg_check(arg, "s", "save")) { const char *next = consume_next(args); if (!next) { ERROR("the save option requires an argument")