1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 20:20:02 +00:00

make reloadables optional

This commit is contained in:
Xinerki 2020-05-21 16:47:48 +03:00
parent 6912cfe98a
commit 6692f5b2aa
4 changed files with 9 additions and 0 deletions

View file

@ -204,6 +204,9 @@ enum Config {
#else #else
#define AUDIO_OAL #define AUDIO_OAL
#endif #endif
#ifdef DEBUGMENU
#define RELOADABLES // some debug menu options to reload TXD files
#endif
// Particle // Particle
//#define PC_PARTICLE //#define PC_PARTICLE

View file

@ -385,10 +385,12 @@ DebugMenuPopulate(void)
DebugMenuAddCmd("Debug", "Start Credits", CCredits::Start); DebugMenuAddCmd("Debug", "Start Credits", CCredits::Start);
DebugMenuAddCmd("Debug", "Stop Credits", CCredits::Stop); DebugMenuAddCmd("Debug", "Stop Credits", CCredits::Stop);
#ifdef RELOADABLES
DebugMenuAddCmd("Reload", "HUD.TXD", CHud::ReloadTXD); DebugMenuAddCmd("Reload", "HUD.TXD", CHud::ReloadTXD);
DebugMenuAddCmd("Reload", "FONTS.TXD", NULL); DebugMenuAddCmd("Reload", "FONTS.TXD", NULL);
DebugMenuAddCmd("Reload", "FRONTEN1.TXD", NULL); DebugMenuAddCmd("Reload", "FRONTEN1.TXD", NULL);
DebugMenuAddCmd("Reload", "FRONTEN2.TXD", NULL); DebugMenuAddCmd("Reload", "FRONTEN2.TXD", NULL);
#endif
extern bool PrintDebugCode; extern bool PrintDebugCode;
extern int16 DebugCamMode; extern int16 DebugCamMode;

View file

@ -1476,6 +1476,7 @@ void CHud::GetRidOfAllHudMessages()
} }
} }
#ifdef RELOADABLES
void CHud::ReloadTXD() void CHud::ReloadTXD()
{ {
for (int i = 0; i < NUM_HUD_SPRITES; ++i) { 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); Sprites[i].SetTexture(WeaponFilenames[i].name, WeaponFilenames[i].mask);
} }
} }
#endif
void CHud::Initialise() void CHud::Initialise()
{ {

View file

@ -124,7 +124,9 @@ public:
static void Draw(); static void Draw();
static void DrawAfterFade(); static void DrawAfterFade();
static void GetRidOfAllHudMessages(); static void GetRidOfAllHudMessages();
#ifdef RELOADABLES
static void ReloadTXD(); static void ReloadTXD();
#endif
static void Initialise(); static void Initialise();
static void ReInitialise(); static void ReInitialise();
static void SetBigMessage(wchar *message, int16 style); static void SetBigMessage(wchar *message, int16 style);