mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
20 lines
No EOL
360 B
C
20 lines
No EOL
360 B
C
#include "cliopts.h"
|
|
|
|
struct PCCLIOptions gCLIOpts;
|
|
|
|
void parse_cli_opts(int argc, char* argv[])
|
|
{
|
|
// Initialize options with false values.
|
|
gCLIOpts.SkipIntro = 0;
|
|
|
|
// Scan arguments for options
|
|
if (argc > 1)
|
|
{
|
|
int i;
|
|
for (i = 1; i < argc; i++)
|
|
{
|
|
if (strcmp(argv[i], "--skip-intro") == 0) // Skip Peach Intro
|
|
gCLIOpts.SkipIntro = 1;
|
|
}
|
|
}
|
|
} |