Added command line option to start in fullscreen mode.

This commit is contained in:
TomW 2015-11-02 18:05:23 +00:00
commit 8e9adf91de
4 changed files with 108 additions and 5 deletions

View file

@ -36,6 +36,7 @@
#include "vid_voodoo.h"
#include "video.h"
int start_in_fullscreen = 0;
int frame = 0;
int cdrom_enabled;
@ -189,9 +190,10 @@ void pc_reset()
// video_init();
}
void initpc()
void initpc(int argc, char *argv[])
{
char *p;
int c;
// allegro_init();
get_executable_name(pcempath,511);
pclog("executable_name = %s\n", pcempath);
@ -199,6 +201,20 @@ void initpc()
*p=0;
pclog("path = %s\n", pcempath);
for (c = 1; c < argc; c++)
{
if (!strcasecmp(argv[c], "--help"))
{
printf("PCem command line options :\n\n");
printf("-fullscreen - start in fullscreen mode\n");
exit(-1);
}
else if (!strcasecmp(argv[c], "--fullscreen"))
{
start_in_fullscreen = 1;
}
}
keyboard_init();
mouse_init();
joystick_init();