mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- change all optional game support archive loaders to scan the program folder
This commit is contained in:
parent
e19b1b2ee7
commit
93f023db80
1 changed files with 3 additions and 3 deletions
|
@ -2068,19 +2068,19 @@ static void AddAutoloadFiles(const char *autoname)
|
||||||
{
|
{
|
||||||
if (GameStartupInfo.LoadLights == 1 || (GameStartupInfo.LoadLights != 0 && autoloadlights))
|
if (GameStartupInfo.LoadLights == 1 || (GameStartupInfo.LoadLights != 0 && autoloadlights))
|
||||||
{
|
{
|
||||||
const char *lightswad = BaseFileSearch ("lights.pk3", NULL, false, GameConfig);
|
const char *lightswad = BaseFileSearch ("lights.pk3", NULL, true, GameConfig);
|
||||||
if (lightswad)
|
if (lightswad)
|
||||||
D_AddFile (allwads, lightswad, true, -1, GameConfig);
|
D_AddFile (allwads, lightswad, true, -1, GameConfig);
|
||||||
}
|
}
|
||||||
if (GameStartupInfo.LoadBrightmaps == 1 || (GameStartupInfo.LoadBrightmaps != 0 && autoloadbrightmaps))
|
if (GameStartupInfo.LoadBrightmaps == 1 || (GameStartupInfo.LoadBrightmaps != 0 && autoloadbrightmaps))
|
||||||
{
|
{
|
||||||
const char *bmwad = BaseFileSearch ("brightmaps.pk3", NULL, false, GameConfig);
|
const char *bmwad = BaseFileSearch ("brightmaps.pk3", NULL, true, GameConfig);
|
||||||
if (bmwad)
|
if (bmwad)
|
||||||
D_AddFile (allwads, bmwad, true, -1, GameConfig);
|
D_AddFile (allwads, bmwad, true, -1, GameConfig);
|
||||||
}
|
}
|
||||||
if (GameStartupInfo.LoadWidescreen == 1 || (GameStartupInfo.LoadWidescreen != 0 && autoloadwidescreen))
|
if (GameStartupInfo.LoadWidescreen == 1 || (GameStartupInfo.LoadWidescreen != 0 && autoloadwidescreen))
|
||||||
{
|
{
|
||||||
const char *wswad = BaseFileSearch ("game_widescreen_gfx.pk3", NULL, false, GameConfig);
|
const char *wswad = BaseFileSearch ("game_widescreen_gfx.pk3", NULL, true, GameConfig);
|
||||||
if (wswad)
|
if (wswad)
|
||||||
D_AddFile (allwads, wswad, true, -1, GameConfig);
|
D_AddFile (allwads, wswad, true, -1, GameConfig);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue