Load widget resources from lumps

Add banner
This commit is contained in:
Magnus Norddahl 2023-12-28 18:39:04 +01:00 committed by Christoph Oelckers
commit 71ff4d3685
10 changed files with 667 additions and 63 deletions

View file

@ -159,6 +159,7 @@ void I_UpdateDiscordPresence(bool SendPresence, const char* curstatus, const cha
bool M_SetSpecialMenu(FName& menu, int param); // game specific checks
const FIWADInfo *D_FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad);
void InitWidgetResources(const char* basewad);
// PUBLIC FUNCTION PROTOTYPES ----------------------------------------------
@ -3672,6 +3673,7 @@ static int D_DoomMain_Internal (void)
I_FatalError("Cannot find " BASEWAD);
}
LoadHexFont(wad); // load hex font early so we have it during startup.
InitWidgetResources(wad);
C_InitConsole(80*8, 25*8, false);
I_DetectOS();