From fb706c42f668b4947ab11a4b5180e87c323d970d Mon Sep 17 00:00:00 2001 From: IvanDSM Date: Tue, 19 May 2020 21:22:05 -0300 Subject: [PATCH] CLI improvements --- src/pc/cliopts.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/pc/cliopts.c b/src/pc/cliopts.c index ee35bf60..0a0e6a55 100644 --- a/src/pc/cliopts.c +++ b/src/pc/cliopts.c @@ -13,10 +13,11 @@ struct PCCLIOptions gCLIOpts; static void print_help(void) { printf("Super Mario 64 PC Port\n"); - printf("%-20s\tSkips the Peach and Castle intro when starting a new game.\n", "--skip-intro"); - printf("%-20s\tStarts the game in full screen mode.\n", "--fullscreen"); - printf("%-20s\tStarts the game in windowed mode.\n", "--windowed"); + printf("%-20s\tEnables the cheat menu.\n", "--cheats"); printf("%-20s\tSaves the configuration file as CONFIGNAME.\n", "--configfile CONFIGNAME"); + printf("%-20s\tStarts the game in full screen mode.\n", "--fullscreen"); + printf("%-20s\tSkips the Peach and Castle intro when starting a new game.\n", "--skip-intro"); + printf("%-20s\tStarts the game in windowed mode.\n", "--windowed"); } void parse_cli_opts(int argc, char* argv[]) { @@ -53,6 +54,9 @@ void parse_cli_opts(int argc, char* argv[]) { gCLIOpts.ConfigFile[arglen] = '\0'; } } + + // Skip the next string since it's the configuration file name. + i++; } } }