mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix omission of modules when parsing game-side defs.
git-svn-id: https://svn.eduke32.com/eduke32@5141 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
896ae2894c
commit
0d5b933bb3
2 changed files with 10 additions and 8 deletions
|
@ -9217,14 +9217,15 @@ int32_t loaddefinitions_game(const char *fn, int32_t preload)
|
|||
UNREFERENCED_PARAMETER(preload);
|
||||
|
||||
script = scriptfile_fromfile(fn);
|
||||
if (!script) return -1;
|
||||
|
||||
if (script)
|
||||
parsegroupfiles(script);
|
||||
|
||||
for (i=0; i < g_defModulesNum; ++i)
|
||||
parsegroupfiles_include(g_defModules[i], NULL, "null");
|
||||
|
||||
if (script)
|
||||
scriptfile_close(script);
|
||||
|
||||
scriptfile_clearsymbols();
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -9824,14 +9824,15 @@ int32_t loaddefinitions_game(const char *fn, int32_t preload)
|
|||
int32_t i;
|
||||
|
||||
script = scriptfile_fromfile(fn);
|
||||
if (!script) return -1;
|
||||
|
||||
if (script)
|
||||
parsedefinitions_game(script, preload);
|
||||
|
||||
for (i=0; i < g_defModulesNum; ++i)
|
||||
parsedefinitions_game_include(g_defModules[i], NULL, "null", preload);
|
||||
|
||||
if (script)
|
||||
scriptfile_close(script);
|
||||
|
||||
scriptfile_clearsymbols();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue