2020-05-11 01:42:22 -04:00
|
|
|
#include "cliopts.h"
|
2020-05-14 22:02:04 -04:00
|
|
|
#include <strings.h>
|
2020-05-11 01:42:22 -04:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|