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

fix FINAL build, add DEBUGMENU and other simple qol defines to FINAL, add extra defines for menu and game version text

This commit is contained in:
withmorten 2020-10-29 19:01:09 +01:00
parent 795c5bbb85
commit e95516032f
4 changed files with 29 additions and 6 deletions

View file

@ -789,9 +789,11 @@ CMenuManager::Draw()
CFont::SetScale(MENU_X(0.7f), MENU_Y(0.5f)); CFont::SetScale(MENU_X(0.7f), MENU_Y(0.5f));
CFont::SetWrapx(SCREEN_SCALE_X(DEFAULT_SCREEN_WIDTH)); CFont::SetWrapx(SCREEN_SCALE_X(DEFAULT_SCREEN_WIDTH));
CFont::SetRightJustifyWrap(0.0f); CFont::SetRightJustifyWrap(0.0f);
#ifdef DRAW_MENU_VERSION_TEXT
strcpy(gString, "V1.1"); strcpy(gString, "V1.1");
AsciiToUnicode(gString, gUString); AsciiToUnicode(gString, gUString);
CFont::PrintString(SCREEN_WIDTH / 10, SCREEN_HEIGHT / 45, gUString); CFont::PrintString(SCREEN_WIDTH / 10, SCREEN_HEIGHT / 45, gUString);
#endif
#endif #endif
CFont::SetWrapx(MENU_X_RIGHT_ALIGNED(MENU_X_MARGIN)); CFont::SetWrapx(MENU_X_RIGHT_ALIGNED(MENU_X_MARGIN));
CFont::SetRightJustifyWrap(SCREEN_SCALE_X(MENUACTION_WIDTH)); CFont::SetRightJustifyWrap(SCREEN_SCALE_X(MENUACTION_WIDTH));

View file

@ -156,6 +156,25 @@ enum Config {
// any debug stuff that is only left in mobile, is not in MASTER // any debug stuff that is only left in mobile, is not in MASTER
//#define MASTER //#define MASTER
// once and for all:
// pc: FINAL & MASTER
// mobile: FINAL
// MASTER builds must be FINAL
#ifdef MASTER
#define FINAL
#endif
// quality of life fixes that should also be in FINAL
#define NASTY_GAME // nasty game for all languages
#define NO_MOVIES // disable intro videos
#define NO_CDCHECK
#define DEBUGMENU
// those infamous texts
#define DRAW_GAME_VERSION_TEXT
#define DRAW_MENU_VERSION_TEXT
#if defined GTA_PS2 #if defined GTA_PS2
# define GTA_PS2_STUFF # define GTA_PS2_STUFF
# define RANDOMSPLASH # define RANDOMSPLASH
@ -177,6 +196,7 @@ enum Config {
#ifdef MASTER #ifdef MASTER
// only in master builds // only in master builds
#undef DRAW_GAME_VERSION_TEXT
#else #else
// not in master builds // not in master builds
#define VALIDATE_SAVE_SIZE #define VALIDATE_SAVE_SIZE
@ -187,11 +207,7 @@ enum Config {
# define USE_MY_DOCUMENTS // use my documents directory for user files # define USE_MY_DOCUMENTS // use my documents directory for user files
#else #else
// not in any game // not in any game
# define NASTY_GAME // nasty game for all languages
# define NO_MOVIES // disable intro videos
# define NO_CDCHECK
# define CHATTYSPLASH // print what the game is loading # define CHATTYSPLASH // print what the game is loading
# define DEBUGMENU
# define TIMEBARS // print debug timers # define TIMEBARS // print debug timers
#endif #endif

View file

@ -768,6 +768,8 @@ DisplayGameDebugText()
char str[200]; char str[200];
wchar ustr[200]; wchar ustr[200];
#ifdef DRAW_GAME_VERSION_TEXT
wchar ver[200]; wchar ver[200];
AsciiToUnicode(version_name, ver); AsciiToUnicode(version_name, ver);
@ -783,6 +785,7 @@ DisplayGameDebugText()
CFont::SetBackGroundOnlyTextOff(); CFont::SetBackGroundOnlyTextOff();
CFont::SetColor(CRGBA(255, 108, 0, 255)); CFont::SetColor(CRGBA(255, 108, 0, 255));
CFont::PrintString(SCREEN_SCALE_X(10.0f), SCREEN_SCALE_Y(10.0f), ver); CFont::PrintString(SCREEN_SCALE_X(10.0f), SCREEN_SCALE_Y(10.0f), ver);
#endif
FrameSamples++; FrameSamples++;
FramesPerSecondCounter += 1000.0f / (CTimer::GetTimeStepNonClippedInSeconds() * 1000.0f); FramesPerSecondCounter += 1000.0f / (CTimer::GetTimeStepNonClippedInSeconds() * 1000.0f);

View file

@ -6,8 +6,10 @@
#include "Timecycle.h" #include "Timecycle.h"
#include "skeleton.h" #include "skeleton.h"
#include "Debug.h" #include "Debug.h"
#ifndef FINAL #if !defined(FINAL) || defined(DEBUGMENU)
#include "rtcharse.h" #include "rtcharse.h"
#endif
#ifndef FINAL
RtCharset *debugCharset; RtCharset *debugCharset;
#endif #endif
@ -17,7 +19,7 @@ bool gPS2alphaTest = true;
bool gPS2alphaTest = false; bool gPS2alphaTest = false;
#endif #endif
#ifndef FINAL #if !defined(FINAL) || defined(DEBUGMENU)
static bool charsetOpen; static bool charsetOpen;
void OpenCharsetSafe() void OpenCharsetSafe()
{ {