version 1.20 | | version 1.21 |
---|
| | |
* main() for Inferno | | * main() for Inferno |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.21 2000/01/17 07:39:17 donut |
| | * switched to SUPPORTS_NICEFPS and added -hudlog_multi switch |
| | * |
* Revision 1.20 2000/01/12 09:52:23 donut | | * Revision 1.20 2000/01/12 09:52:23 donut |
* document -gl_refresh | | * document -gl_refresh |
* | | * |
| | |
| | |
#include "../texmap/scanline.h" //for select_tmap -MM | | #include "../texmap/scanline.h" //for select_tmap -MM |
| | |
| | #include "d_delay.h" //for SUPPORTS_NICEFPS |
| | |
#ifdef __MSDOS__ | | #ifdef __MSDOS__ |
#include <conio.h> | | #include <conio.h> |
#else | | #else |
| | |
printf( " -maxfps <n> %s\n", "Set maximum framerate (1-100)"); | | printf( " -maxfps <n> %s\n", "Set maximum framerate (1-100)"); |
printf( " -notitles %s\n", "Do not show titlescreens on startup"); | | printf( " -notitles %s\n", "Do not show titlescreens on startup"); |
printf( " -ini <file> %s\n", "option file (alternate to command line)"); | | printf( " -ini <file> %s\n", "option file (alternate to command line)"); |
| | #ifdef SUPPORTS_NICEFPS |
printf( " -nicefps %s\n", "Free cpu while waiting for next frame"); | | printf( " -nicefps %s\n", "Free cpu while waiting for next frame"); |
printf( " -niceautomap %s\n", "Free cpu while doing automap"); | | printf( " -niceautomap %s\n", "Free cpu while doing automap"); |
| | #endif |
printf( " -automap<X>x<Y> %s\n", "Set automap resolution to <X> by <Y>"); | | printf( " -automap<X>x<Y> %s\n", "Set automap resolution to <X> by <Y>"); |
printf( " -automap_gameres %s\n", "Set automap to use the same resolution as in game"); | | printf( " -automap_gameres %s\n", "Set automap to use the same resolution as in game"); |
printf( " -menu<X>x<Y> %s\n", "Set menu resolution to <X> by <Y>"); | | printf( " -menu<X>x<Y> %s\n", "Set menu resolution to <X> by <Y>"); |
| | |
printf( " -playlist \"...\" %s\n", "Set the cd audio playlist to tracks \"a b c ... f g\""); | | printf( " -playlist \"...\" %s\n", "Set the cd audio playlist to tracks \"a b c ... f g\""); |
//added/edited on 11/01/98 by Matthew Mueller | | //added/edited on 11/01/98 by Matthew Mueller |
printf( " -hudlog %s\n", "Start hudlog immediatly"); | | printf( " -hudlog %s\n", "Start hudlog immediatly"); |
| | printf( " -hudlog_multi %s\n", "Start hudlog upon entering multiplayer games"); |
printf( " -hudlogdir <d> %s\n", "Log hud messages in directory <d>"); | | printf( " -hudlogdir <d> %s\n", "Log hud messages in directory <d>"); |
printf( " -hudlogstdout %s\n", "Log hud messages to stdout"); | | printf( " -hudlogstdout %s\n", "Log hud messages to stdout"); |
//end edit -MM | | //end edit -MM |
| | |
| | |
//added/edited on 11/01/98 by Matt Mueller | | //added/edited on 11/01/98 by Matt Mueller |
//added on 10/04/98 by Matt Mueller to allow hud message logging | | //added on 10/04/98 by Matt Mueller to allow hud message logging |
| | if (FindArg("-hudlog_multi")) |
| | HUD_log_multi_autostart = 1; |
if (FindArg("-hudlogstdout")) | | if (FindArg("-hudlogstdout")) |
HUD_log_messages = 1; | | HUD_log_messages = 1; |
if ((t=FindArg("-hudlogdir"))) | | if ((t=FindArg("-hudlogdir"))) |
hud_log_setdir(Args[t+1]); | | hud_log_setdir(Args[t+1]); |
if (FindArg("-hudlog")) | | if (FindArg("-hudlog")) |
open_hud_log(); | | HUD_log_autostart = 1; |
//end addition -MM | | //end addition -MM |
//added 8/5/98 by Victor Rachels to add global variables to noredundancy/playermessages | | //added 8/5/98 by Victor Rachels to add global variables to noredundancy/playermessages |
//look in hud.c for usage | | //look in hud.c for usage |
| | |
#endif | | #endif |
//end this section addition | | //end this section addition |
| | |
#ifdef __LINUX__ | | #ifdef SUPPORTS_NICEFPS |
if ( FindArg( "-nicefps")) | | if ( FindArg( "-nicefps")) |
use_nice_fps = 1; | | use_nice_fps = 1; |
#endif | | |
if (FindArg( "-niceautomap")) | | if (FindArg( "-niceautomap")) |
nice_automap=1; | | nice_automap=1; |
| | #endif |
| | |
if ( FindArg( "-fps" )) | | if ( FindArg( "-fps" )) |
framerate_on = 1; | | framerate_on = 1; |