summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXinerki <simasadves@gmail.com>2020-05-21 15:47:48 +0200
committerXinerki <simasadves@gmail.com>2020-05-21 15:47:48 +0200
commit6692f5b2aa11e5cac51a61b41164316030152b16 (patch)
tree07e25187e2a1d0c3f55062e9201516246b70dd98 /src
parentmenu map color change (diff)
downloadre3-6692f5b2aa11e5cac51a61b41164316030152b16.tar
re3-6692f5b2aa11e5cac51a61b41164316030152b16.tar.gz
re3-6692f5b2aa11e5cac51a61b41164316030152b16.tar.bz2
re3-6692f5b2aa11e5cac51a61b41164316030152b16.tar.lz
re3-6692f5b2aa11e5cac51a61b41164316030152b16.tar.xz
re3-6692f5b2aa11e5cac51a61b41164316030152b16.tar.zst
re3-6692f5b2aa11e5cac51a61b41164316030152b16.zip
Diffstat (limited to '')
-rw-r--r--src/core/config.h3
-rw-r--r--src/core/re3.cpp2
-rw-r--r--src/render/Hud.cpp2
-rw-r--r--src/render/Hud.h2
4 files changed, 9 insertions, 0 deletions
diff --git a/src/core/config.h b/src/core/config.h
index 105454fa..1d7e760a 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -204,6 +204,9 @@ enum Config {
#else
#define AUDIO_OAL
#endif
+#ifdef DEBUGMENU
+#define RELOADABLES // some debug menu options to reload TXD files
+#endif
// Particle
//#define PC_PARTICLE
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index 7f69e0f1..c7fade52 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -385,10 +385,12 @@ DebugMenuPopulate(void)
DebugMenuAddCmd("Debug", "Start Credits", CCredits::Start);
DebugMenuAddCmd("Debug", "Stop Credits", CCredits::Stop);
+#ifdef RELOADABLES
DebugMenuAddCmd("Reload", "HUD.TXD", CHud::ReloadTXD);
DebugMenuAddCmd("Reload", "FONTS.TXD", NULL);
DebugMenuAddCmd("Reload", "FRONTEN1.TXD", NULL);
DebugMenuAddCmd("Reload", "FRONTEN2.TXD", NULL);
+#endif
extern bool PrintDebugCode;
extern int16 DebugCamMode;
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index a2eed48b..4e12ceb5 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -1476,6 +1476,7 @@ void CHud::GetRidOfAllHudMessages()
}
}
+#ifdef RELOADABLES
void CHud::ReloadTXD()
{
for (int i = 0; i < NUM_HUD_SPRITES; ++i) {
@@ -1497,6 +1498,7 @@ void CHud::ReloadTXD()
Sprites[i].SetTexture(WeaponFilenames[i].name, WeaponFilenames[i].mask);
}
}
+#endif
void CHud::Initialise()
{
diff --git a/src/render/Hud.h b/src/render/Hud.h
index 3f4b218e..9d2c5f8b 100644
--- a/src/render/Hud.h
+++ b/src/render/Hud.h
@@ -124,7 +124,9 @@ public:
static void Draw();
static void DrawAfterFade();
static void GetRidOfAllHudMessages();
+#ifdef RELOADABLES
static void ReloadTXD();
+#endif
static void Initialise();
static void ReInitialise();
static void SetBigMessage(wchar *message, int16 style);