Parse exhumed.def if available

This commit is contained in:
nukeykt 2019-11-21 21:51:27 +09:00 committed by Christoph Oelckers
parent f3069bbe4f
commit e626db8ce5

View file

@ -475,7 +475,7 @@ const char *g_gameNamePtr = NULL;
// grp handling // grp handling
static const char *defaultgamegrp = "STUFF.DAT"; 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) // g_grpNamePtr can ONLY point to a malloc'd block (length BMAX_PATH)
char *g_grpNamePtr = NULL; 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 // temp - moving InstallEngine(); before FadeOut as we use nextpage() in FadeOut
InstallEngine(); 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()) if (enginePostInit())
ShutDown(); ShutDown();