mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
Load def modules even if no root def exists. Print a message to the log for each def module that is loaded.
git-svn-id: https://svn.eduke32.com/eduke32@3621 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
cae310d8d5
commit
ba1ac9d89a
1 changed files with 21 additions and 6 deletions
|
@ -122,6 +122,13 @@ static void defsparser_include(const char *fn, const scriptfile *script, const c
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (!cmdtokptr)
|
||||||
|
{
|
||||||
|
flushlogwindow = 1;
|
||||||
|
initprintf("Loading module \"%s\"\n",fn);
|
||||||
|
flushlogwindow = 0;
|
||||||
|
}
|
||||||
|
|
||||||
defsparser(included);
|
defsparser(included);
|
||||||
scriptfile_close(included);
|
scriptfile_close(included);
|
||||||
}
|
}
|
||||||
|
@ -2101,20 +2108,28 @@ int32_t loaddefinitionsfile(const char *fn)
|
||||||
int32_t i;
|
int32_t i;
|
||||||
|
|
||||||
script = scriptfile_fromfile(fn);
|
script = scriptfile_fromfile(fn);
|
||||||
if (!script) return -1;
|
|
||||||
|
|
||||||
|
if (script)
|
||||||
|
{
|
||||||
flushlogwindow = 1;
|
flushlogwindow = 1;
|
||||||
initprintf("Loading \"%s\"\n",fn);
|
initprintf("Loading \"%s\"\n",fn);
|
||||||
flushlogwindow = 0;
|
flushlogwindow = 0;
|
||||||
|
|
||||||
defsparser(script);
|
defsparser(script);
|
||||||
|
}
|
||||||
|
|
||||||
for (i=0; i < g_defModulesNum; ++i)
|
for (i=0; i < g_defModulesNum; ++i)
|
||||||
defsparser_include(g_defModules[i], NULL, NULL);
|
defsparser_include(g_defModules[i], NULL, NULL);
|
||||||
|
|
||||||
flushlogwindow = f;
|
flushlogwindow = f;
|
||||||
|
|
||||||
|
if (script)
|
||||||
scriptfile_close(script);
|
scriptfile_close(script);
|
||||||
|
|
||||||
scriptfile_clearsymbols();
|
scriptfile_clearsymbols();
|
||||||
|
|
||||||
|
if (!script) return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue