Render96ex/src/pc/cliopts.c

25 lines
546 B
C
Raw Normal View History

#include "cliopts.h"
2020-05-14 22:02:04 -04:00
#include <strings.h>
struct PCCLIOptions gCLIOpts;
void parse_cli_opts(int argc, char* argv[])
{
// Initialize options with false values.
2020-05-15 11:51:06 -04:00
gCLIOpts.SkipIntro = 0;
gCLIOpts.FullScreen = 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;
2020-05-15 11:51:06 -04:00
if (strcmp(argv[i], "--fullscreen") == 0) // Open game in fullscreen
gCLIOpts.FullScreen = 1;
}
}
}