From 3dad7ca226daf9ec70b98f3e1256f96cce6ccea3 Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Fri, 2 Oct 2020 11:54:58 -0700
Subject: [PATCH] Move HU_LoadGraphics after startuppwads are loaded

This is needed for graphics replacements to take effect.
---
 src/d_main.c   | 5 +++--
 src/hu_stuff.c | 2 --
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/d_main.c b/src/d_main.c
index 83a863463b..d1a4140181 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -1383,8 +1383,6 @@ void D_SRB2Main(void)
 	// setup loading screen
 	SCR_Startup();
 
-	// we need the font of the console
-	CONS_Printf("HU_Init(): Setting up heads up display.\n");
 	HU_Init();
 
 	CON_Init();
@@ -1400,6 +1398,9 @@ void D_SRB2Main(void)
 	W_InitMultipleFiles(startuppwads);
 	D_CleanFile(startuppwads);
 
+	CONS_Printf("HU_LoadGraphics()...\n");
+	HU_LoadGraphics();
+
 	//--------------------------------------------------------- CONFIG.CFG
 	M_FirstLoadConfig(); // WARNING : this do a "COM_BufExecute()"
 
diff --git a/src/hu_stuff.c b/src/hu_stuff.c
index 1a184ea575..72fb9272d4 100644
--- a/src/hu_stuff.c
+++ b/src/hu_stuff.c
@@ -330,8 +330,6 @@ void HU_Init(void)
 
 	// set shift translation table
 	shiftxform = english_shiftxform;
-
-	HU_LoadGraphics();
 }
 
 static inline void HU_Stop(void)
-- 
GitLab