Move SysShowCmdHelp to CGameArg
Both games support SysShowCmdHelp. Move it to the common structure.
This commit is contained in:
parent
d4511b3128
commit
e33f7f751b
|
@ -72,6 +72,7 @@ struct CArg : prohibit_void_ptr<CArg>
|
|||
#if defined(__unix__)
|
||||
bool SysNoHogDir;
|
||||
#endif
|
||||
bool SysShowCmdHelp;
|
||||
int DbgVerbose;
|
||||
int SysMaxFPS;
|
||||
std::string SysMissionDir;
|
||||
|
@ -83,7 +84,6 @@ struct Arg : prohibit_void_ptr<Arg>
|
|||
std::string SysHogDir;
|
||||
std::string SysPilot;
|
||||
std::string SysRecordDemoNameTemplate;
|
||||
bool SysShowCmdHelp;
|
||||
bool SysNoNiceFPS;
|
||||
bool SysUsePlayersDir;
|
||||
bool SysLowMem;
|
||||
|
|
|
@ -357,7 +357,7 @@ int main(int argc, char *argv[])
|
|||
freopen( "CON", "w", stderr );
|
||||
#endif
|
||||
|
||||
if (GameArg.SysShowCmdHelp) {
|
||||
if (CGameArg.SysShowCmdHelp) {
|
||||
print_commandline_help();
|
||||
|
||||
return(0);
|
||||
|
|
|
@ -193,7 +193,7 @@ static void ReadCmdArgs(Inilist &ini, Arglist &Args)
|
|||
// System Options
|
||||
|
||||
if (!d_stricmp(p, "-help") || !d_stricmp(p, "-h") || !d_stricmp(p, "-?") || !d_stricmp(p, "?"))
|
||||
GameArg.SysShowCmdHelp = 1;
|
||||
CGameArg.SysShowCmdHelp = true;
|
||||
else if (!d_stricmp(p, "-nonicefps"))
|
||||
GameArg.SysNoNiceFPS = 1;
|
||||
else if (!d_stricmp(p, "-maxfps"))
|
||||
|
|
Loading…
Reference in a new issue