Move DbgAltTex to CArg
This commit is contained in:
parent
b0e0f48058
commit
0fb84b883f
|
@ -119,6 +119,7 @@ struct CArg : prohibit_void_ptr<CArg>
|
|||
std::string SysPilot;
|
||||
std::string SysRecordDemoNameTemplate;
|
||||
std::string MplUdpHostAddr;
|
||||
std::string DbgAltTex;
|
||||
std::string DbgTexMap;
|
||||
};
|
||||
extern CArg CGameArg;
|
||||
|
@ -148,7 +149,6 @@ struct Arg : prohibit_void_ptr<Arg>
|
|||
bool EdiSaveHoardData;
|
||||
bool EdiMacData; // also used for some read routines in non-editor build
|
||||
#endif
|
||||
std::string DbgAltTex;
|
||||
};
|
||||
|
||||
extern struct Arg GameArg;
|
||||
|
|
|
@ -214,8 +214,8 @@ void load_text()
|
|||
};
|
||||
#endif
|
||||
|
||||
if (!GameArg.DbgAltTex.empty())
|
||||
filename = GameArg.DbgAltTex.c_str();
|
||||
if (!CGameArg.DbgAltTex.empty())
|
||||
filename = CGameArg.DbgAltTex.c_str();
|
||||
|
||||
auto tfile = PHYSFSX_openReadBuffered(filename);
|
||||
if (!tfile)
|
||||
|
|
|
@ -356,7 +356,7 @@ static void ReadCmdArgs(Inilist &ini, Arglist &Args)
|
|||
else if (!d_stricmp(p, "-renderstats"))
|
||||
CGameArg.DbgRenderStats = true;
|
||||
else if (!d_stricmp(p, "-text"))
|
||||
GameArg.DbgAltTex = arg_string(pp, end);
|
||||
CGameArg.DbgAltTex = arg_string(pp, end);
|
||||
else if (!d_stricmp(p, "-tmap"))
|
||||
CGameArg.DbgTexMap = arg_string(pp, end);
|
||||
else if (!d_stricmp(p, "-showmeminfo"))
|
||||
|
|
Loading…
Reference in a new issue