mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-07 07:21:01 +00:00
- add support for the (as of now) newest version of the Unity re-releases
This commit is contained in:
parent
e740e00e07
commit
0204051381
6 changed files with 30 additions and 2 deletions
|
@ -184,6 +184,13 @@ void FIWadManager::ParseIWadInfo(const char *fn, const char *data, int datasize,
|
||||||
if (sc.Number) iwad->flags |= GI_IGNORETITLEPATCHES;
|
if (sc.Number) iwad->flags |= GI_IGNORETITLEPATCHES;
|
||||||
else iwad->flags &= ~GI_IGNORETITLEPATCHES;
|
else iwad->flags &= ~GI_IGNORETITLEPATCHES;
|
||||||
}
|
}
|
||||||
|
else if (sc.Compare("AlwaysCenterStatusBar"))
|
||||||
|
{
|
||||||
|
sc.MustGetStringName("=");
|
||||||
|
sc.MustGetNumber();
|
||||||
|
if (sc.Number) iwad->flags |= GI_ALWAYSCENTERSBAR;
|
||||||
|
else iwad->flags &= ~GI_ALWAYSCENTERSBAR;
|
||||||
|
}
|
||||||
else if (sc.Compare("Load"))
|
else if (sc.Compare("Load"))
|
||||||
{
|
{
|
||||||
sc.MustGetStringName("=");
|
sc.MustGetStringName("=");
|
||||||
|
|
|
@ -2962,6 +2962,18 @@ static void CheckForHacks(BuildInfo& buildinfo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void FixUnityStatusBar()
|
||||||
|
{
|
||||||
|
if (gameinfo.flags & GI_ALWAYSCENTERSBAR)
|
||||||
|
{
|
||||||
|
FGameTexture* sbartex = TexMan.FindGameTexture("stbar", ETextureType::MiscPatch);
|
||||||
|
if (!sbartex)
|
||||||
|
return;
|
||||||
|
sbartex->SetOffsets(0, (sbartex->GetTexelWidth() - 320) / 2, 0);
|
||||||
|
sbartex->SetOffsets(1, (sbartex->GetTexelWidth() - 320) / 2, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
@ -3352,6 +3364,8 @@ static int D_DoomMain_Internal (void)
|
||||||
TexAnim.Init();
|
TexAnim.Init();
|
||||||
C_InitConback();
|
C_InitConback();
|
||||||
|
|
||||||
|
FixUnityStatusBar();
|
||||||
|
|
||||||
StartScreen->Progress();
|
StartScreen->Progress();
|
||||||
V_InitFonts();
|
V_InitFonts();
|
||||||
V_LoadTranslations();
|
V_LoadTranslations();
|
||||||
|
|
|
@ -50,6 +50,7 @@ enum
|
||||||
GI_COMPATPOLY1 = 0x00000040, // Hexen's MAP36 needs old polyobject drawing
|
GI_COMPATPOLY1 = 0x00000040, // Hexen's MAP36 needs old polyobject drawing
|
||||||
GI_COMPATPOLY2 = 0x00000080, // so does HEXDD's MAP47
|
GI_COMPATPOLY2 = 0x00000080, // so does HEXDD's MAP47
|
||||||
GI_IGNORETITLEPATCHES = 0x00000200, // Ignore the map name graphics when not runnning in English language
|
GI_IGNORETITLEPATCHES = 0x00000200, // Ignore the map name graphics when not runnning in English language
|
||||||
|
GI_ALWAYSCENTERSBAR = 0x00000400, // Always center the status bar
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "gametype.h"
|
#include "gametype.h"
|
||||||
|
|
|
@ -199,7 +199,9 @@ TArray<FString> I_GetSteamPath()
|
||||||
"hexen deathkings of the dark citadel/base",
|
"hexen deathkings of the dark citadel/base",
|
||||||
"ultimate doom/base",
|
"ultimate doom/base",
|
||||||
"DOOM 3 BFG Edition/base/wads",
|
"DOOM 3 BFG Edition/base/wads",
|
||||||
"Strife"
|
"Strife",
|
||||||
|
"Ultimate Doom/rerelease/DOOM_Data/StreamingAssets",
|
||||||
|
"Doom 2/rerelease/DOOM II_Data/StreamingAssets"
|
||||||
};
|
};
|
||||||
|
|
||||||
FString path;
|
FString path;
|
||||||
|
|
|
@ -3,7 +3,7 @@ include "mapinfo/doom2.txt"
|
||||||
|
|
||||||
gameinfo
|
gameinfo
|
||||||
{
|
{
|
||||||
titlepage = "DMENUPIC"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clearepisodes
|
clearepisodes
|
||||||
|
|
|
@ -350,6 +350,7 @@ IWad
|
||||||
"DMENUPIC"
|
"DMENUPIC"
|
||||||
BannerColors = "00 7c 00", "a8 a8 a8"
|
BannerColors = "00 7c 00", "a8 a8 a8"
|
||||||
IgnoreTitlePatches = 1
|
IgnoreTitlePatches = 1
|
||||||
|
AlwaysCenterStatusbar = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
IWad
|
IWad
|
||||||
|
@ -438,6 +439,7 @@ IWad
|
||||||
MustContain = "MAP01", "REDTNT2", "DMAPINFO"
|
MustContain = "MAP01", "REDTNT2", "DMAPINFO"
|
||||||
BannerColors = "00 7c 00", "a8 a8 a8"
|
BannerColors = "00 7c 00", "a8 a8 a8"
|
||||||
IgnoreTitlePatches = 1
|
IgnoreTitlePatches = 1
|
||||||
|
AlwaysCenterStatusbar = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
IWad
|
IWad
|
||||||
|
@ -466,6 +468,7 @@ IWad
|
||||||
MustContain = "MAP01", "CAMO1", "DMAPINFO"
|
MustContain = "MAP01", "CAMO1", "DMAPINFO"
|
||||||
BannerColors = "00 7c 00", "a8 a8 a8"
|
BannerColors = "00 7c 00", "a8 a8 a8"
|
||||||
IgnoreTitlePatches = 1
|
IgnoreTitlePatches = 1
|
||||||
|
AlwaysCenterStatusbar = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
IWad
|
IWad
|
||||||
|
@ -510,6 +513,7 @@ IWad
|
||||||
BannerColors = "00 7c 00", "a8 a8 a8"
|
BannerColors = "00 7c 00", "a8 a8 a8"
|
||||||
IgnoreTitlePatches = 1
|
IgnoreTitlePatches = 1
|
||||||
Load = "nerveunity.wad"
|
Load = "nerveunity.wad"
|
||||||
|
AlwaysCenterStatusbar = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
IWad
|
IWad
|
||||||
|
|
Loading…
Reference in a new issue