mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 17:32:13 +00:00
Automatically execute mapname.cfg at map load time. This allows different maps in mods to have different rendering settings (shadescale, etc). This is not currently suitable for standalone user maps as there's no functionality to reset such cvars back to default at the next map load (so, if using this in a mod, every map needs to have a cfg).
git-svn-id: https://svn.eduke32.com/eduke32@3706 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
15014234ab
commit
630261aa50
1 changed files with 14 additions and 0 deletions
|
@ -9862,6 +9862,20 @@ int32_t loadboard(char *filename, char flags, vec3_t *dapos, int16_t *daang, int
|
||||||
yax_updategrays(dapos->z);
|
yax_updategrays(dapos->z);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
{
|
||||||
|
char *p, fn[BMAX_PATH];
|
||||||
|
|
||||||
|
Bstrcpy(fn, filename);
|
||||||
|
|
||||||
|
p = Bstrrchr(fn, '.');
|
||||||
|
|
||||||
|
if (!p)
|
||||||
|
{
|
||||||
|
Bstrcat(fn, ".cfg");
|
||||||
|
OSD_Exec(fn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return finish_loadboard(dapos, dacursectnum, numsprites, myflags);
|
return finish_loadboard(dapos, dacursectnum, numsprites, myflags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue