mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 19:10:50 +00:00
- Autoload console background pics by Scuba Steve with the autoloadconpics CVAR.
This commit is contained in:
parent
260ca8f37c
commit
676f160634
2 changed files with 14 additions and 1 deletions
|
@ -228,6 +228,7 @@ CVAR (Bool, disableautoload, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBAL
|
|||
CVAR (Bool, autoloadbrightmaps, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||
CVAR (Bool, autoloadlights, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||
CVAR (Bool, autoloadwidescreen, true, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||
CVAR (Bool, autoloadconpics, true, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||
CVAR (Bool, r_debug_disable_vis_filter, false, 0)
|
||||
|
||||
bool wantToRestart;
|
||||
|
@ -2006,6 +2007,11 @@ static FString ParseGameInfo(TArray<FString> &pwads, const char *fn, const char
|
|||
sc.MustGetNumber();
|
||||
DoomStartupInfo.LoadWidescreen = !!sc.Number;
|
||||
}
|
||||
else if (!nextKey.CompareNoCase("LOADCONPICS"))
|
||||
{
|
||||
sc.MustGetNumber();
|
||||
DoomStartupInfo.LoadConpics = !!sc.Number;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Silently ignore unknown properties
|
||||
|
@ -2173,6 +2179,12 @@ static void AddAutoloadFiles(const char *autoname)
|
|||
if (wswad)
|
||||
D_AddFile (allwads, wswad);
|
||||
}
|
||||
if (DoomStartupInfo.LoadConpics == 1 || (DoomStartupInfo.LoadConpics != 0 && autoloadconpics))
|
||||
{
|
||||
const char *conpicswad = BaseFileSearch ("game_conpics_gfx.pk3", NULL);
|
||||
if (conpicswad)
|
||||
D_AddFile (allwads, conpicswad);
|
||||
}
|
||||
}
|
||||
|
||||
if (!(gameinfo.flags & GI_SHAREWARE) && !Args->CheckParm("-noautoload") && !disableautoload)
|
||||
|
@ -3020,7 +3032,7 @@ void D_Cleanup()
|
|||
// delete DoomStartupInfo data
|
||||
DoomStartupInfo.Name = "";
|
||||
DoomStartupInfo.BkColor = DoomStartupInfo.FgColor = DoomStartupInfo.Type = 0;
|
||||
DoomStartupInfo.LoadWidescreen = DoomStartupInfo.LoadLights = DoomStartupInfo.LoadBrightmaps = -1;
|
||||
DoomStartupInfo.LoadConpics = DoomStartupInfo.LoadWidescreen = DoomStartupInfo.LoadLights = DoomStartupInfo.LoadBrightmaps = -1;
|
||||
|
||||
GC::FullGC(); // clean up before taking down the object list.
|
||||
|
||||
|
|
|
@ -84,6 +84,7 @@ struct FStartupInfo
|
|||
int LoadLights = -1;
|
||||
int LoadBrightmaps = -1;
|
||||
int LoadWidescreen = -1;
|
||||
int LoadConpics = -1;
|
||||
enum
|
||||
{
|
||||
DefaultStartup,
|
||||
|
|
Loading…
Reference in a new issue