- load the hex font as early as possible.
This commit is contained in:
parent
7832ada2fc
commit
010f41a3aa
2 changed files with 27 additions and 14 deletions
|
|
@ -173,6 +173,7 @@ void FreeSBarInfoScript();
|
|||
void I_UpdateWindowTitle();
|
||||
void S_ParseMusInfo();
|
||||
void D_GrabCVarDefaults();
|
||||
void LoadHexFont(const char* filename);
|
||||
|
||||
// PRIVATE FUNCTION PROTOTYPES ---------------------------------------------
|
||||
|
||||
|
|
@ -3474,6 +3475,15 @@ static int D_DoomMain_Internal (void)
|
|||
std::set_new_handler(NewFailure);
|
||||
const char *batchout = Args->CheckValue("-errorlog");
|
||||
|
||||
// [RH] Make sure zdoom.pk3 is always loaded,
|
||||
// as it contains magic stuff we need.
|
||||
wad = BaseFileSearch(BASEWAD, NULL, true, GameConfig);
|
||||
if (wad == NULL)
|
||||
{
|
||||
I_FatalError("Cannot find " BASEWAD);
|
||||
}
|
||||
LoadHexFont(wad); // load hex font early so we have it during startup.
|
||||
|
||||
C_InitConsole(80*8, 25*8, false);
|
||||
I_DetectOS();
|
||||
|
||||
|
|
@ -3503,13 +3513,6 @@ static int D_DoomMain_Internal (void)
|
|||
extern void D_ConfirmSendStats();
|
||||
D_ConfirmSendStats();
|
||||
|
||||
// [RH] Make sure zdoom.pk3 is always loaded,
|
||||
// as it contains magic stuff we need.
|
||||
wad = BaseFileSearch (BASEWAD, NULL, true, GameConfig);
|
||||
if (wad == NULL)
|
||||
{
|
||||
I_FatalError ("Cannot find " BASEWAD);
|
||||
}
|
||||
FString basewad = wad;
|
||||
|
||||
FString optionalwad = BaseFileSearch(OPTIONALWAD, NULL, true, GameConfig);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue