mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Parse exhumed.def if available
This commit is contained in:
parent
f3069bbe4f
commit
e626db8ce5
1 changed files with 11 additions and 1 deletions
|
@ -475,7 +475,7 @@ const char *g_gameNamePtr = NULL;
|
|||
// grp handling
|
||||
|
||||
static const char *defaultgamegrp = "STUFF.DAT";
|
||||
static const char *defaultdeffilename = "powerslave.def";
|
||||
static const char *defaultdeffilename = "exhumed.def";
|
||||
|
||||
// g_grpNamePtr can ONLY point to a malloc'd block (length BMAX_PATH)
|
||||
char *g_grpNamePtr = NULL;
|
||||
|
@ -2581,6 +2581,16 @@ int app_main(int argc, char const* const* argv)
|
|||
// temp - moving InstallEngine(); before FadeOut as we use nextpage() in FadeOut
|
||||
InstallEngine();
|
||||
|
||||
const char *defsfile = G_DefFile();
|
||||
uint32_t stime = timerGetTicks();
|
||||
if (!loaddefinitionsfile(defsfile))
|
||||
{
|
||||
uint32_t etime = timerGetTicks();
|
||||
initprintf("Definitions file \"%s\" loaded in %d ms.\n", defsfile, etime-stime);
|
||||
}
|
||||
loaddefinitions_game(defsfile, FALSE);
|
||||
|
||||
|
||||
if (enginePostInit())
|
||||
ShutDown();
|
||||
|
||||
|
|
Loading…
Reference in a new issue