mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 16:21:50 +01:00
Merge pull request #607 from rollschuh2282/master
Added toggles for the TimeBars and the "DebugStuffInRelease" to the Debug Menu
This commit is contained in:
commit
f69313237e
@ -186,7 +186,7 @@ enum Config {
|
|||||||
# define NO_CDCHECK
|
# define NO_CDCHECK
|
||||||
# define CHATTYSPLASH // print what the game is loading
|
# define CHATTYSPLASH // print what the game is loading
|
||||||
# define DEBUGMENU
|
# define DEBUGMENU
|
||||||
//# define TIMEBARS // print debug timers
|
# define TIMEBARS // print debug timers
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FIX_BUGS // fixes bugs that we've came across during reversing, TODO: use this more
|
#define FIX_BUGS // fixes bugs that we've came across during reversing, TODO: use this more
|
||||||
@ -228,7 +228,7 @@ enum Config {
|
|||||||
#define CUSTOM_FRONTEND_OPTIONS
|
#define CUSTOM_FRONTEND_OPTIONS
|
||||||
|
|
||||||
// Script
|
// Script
|
||||||
#define USE_DEBUG_SCRIPT_LOADER // makes game load main_freeroam.scm by default
|
#define USE_DEBUG_SCRIPT_LOADER // Loads main.scm by default. Hold R for main_freeroam.scm and D for main_d.scm
|
||||||
#define USE_MEASUREMENTS_IN_METERS // makes game use meters instead of feet in script
|
#define USE_MEASUREMENTS_IN_METERS // makes game use meters instead of feet in script
|
||||||
#define USE_PRECISE_MEASUREMENT_CONVERTION // makes game convert feet to meeters more precisely
|
#define USE_PRECISE_MEASUREMENT_CONVERTION // makes game convert feet to meeters more precisely
|
||||||
#define MISSION_REPLAY // mobile feature
|
#define MISSION_REPLAY // mobile feature
|
||||||
|
@ -73,6 +73,10 @@ float FramesPerSecond = 30.0f;
|
|||||||
|
|
||||||
bool gbPrintShite = false;
|
bool gbPrintShite = false;
|
||||||
bool gbModelViewer;
|
bool gbModelViewer;
|
||||||
|
//Custom Timebars Toggle
|
||||||
|
#ifdef TIMEBARS
|
||||||
|
bool gbShowTimebars;
|
||||||
|
#endif
|
||||||
|
|
||||||
int32 frameCount;
|
int32 frameCount;
|
||||||
|
|
||||||
@ -1096,8 +1100,12 @@ Idle(void *arg)
|
|||||||
#endif
|
#endif
|
||||||
CCredits::Render();
|
CCredits::Render();
|
||||||
|
|
||||||
|
|
||||||
#ifdef TIMEBARS
|
#ifdef TIMEBARS
|
||||||
|
//Custom Timebars toggle
|
||||||
|
if (gbShowTimebars)
|
||||||
tbDisplay();
|
tbDisplay();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DoRWStuffEndOfFrame();
|
DoRWStuffEndOfFrame();
|
||||||
|
@ -14,6 +14,10 @@ extern wchar gUString[256];
|
|||||||
extern wchar gUString2[256];
|
extern wchar gUString2[256];
|
||||||
extern bool gbPrintShite;
|
extern bool gbPrintShite;
|
||||||
extern bool gbModelViewer;
|
extern bool gbModelViewer;
|
||||||
|
//Custom Timebars Toggle
|
||||||
|
#ifdef TIMEBARS
|
||||||
|
extern bool gbShowTimebars;
|
||||||
|
#endif
|
||||||
|
|
||||||
class CSprite2d;
|
class CSprite2d;
|
||||||
|
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
#include "debugmenu.h"
|
#include "debugmenu.h"
|
||||||
#include "Frontend.h"
|
#include "Frontend.h"
|
||||||
#include "Text.h"
|
#include "Text.h"
|
||||||
|
#include "WaterLevel.h"
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include "assert.h"
|
#include "assert.h"
|
||||||
@ -459,6 +461,7 @@ DebugMenuPopulate(void)
|
|||||||
DebugMenuAddVarBool8("Render", "Don't render Peds", &gbDontRenderPeds, nil);
|
DebugMenuAddVarBool8("Render", "Don't render Peds", &gbDontRenderPeds, nil);
|
||||||
DebugMenuAddVarBool8("Render", "Don't render Vehicles", &gbDontRenderVehicles, nil);
|
DebugMenuAddVarBool8("Render", "Don't render Vehicles", &gbDontRenderVehicles, nil);
|
||||||
DebugMenuAddVarBool8("Render", "Don't render Objects", &gbDontRenderObjects, nil);
|
DebugMenuAddVarBool8("Render", "Don't render Objects", &gbDontRenderObjects, nil);
|
||||||
|
DebugMenuAddVarBool8("Render", "Don´t Render Water", &gbDontRenderWater, nil);
|
||||||
|
|
||||||
DebugMenuAddVarBool8("Debug", "Edit on", &CSceneEdit::m_bEditOn, nil);
|
DebugMenuAddVarBool8("Debug", "Edit on", &CSceneEdit::m_bEditOn, nil);
|
||||||
#ifdef MENU_MAP
|
#ifdef MENU_MAP
|
||||||
@ -488,6 +491,9 @@ 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);
|
||||||
|
|
||||||
|
DebugMenuAddVarBool8("Debug", "Show DebugStuffInRelease", &gbDebugStuffInRelease, nil);
|
||||||
|
DebugMenuAddVarBool8("Debug", "Show Timebars", &gbShowTimebars, nil);
|
||||||
|
|
||||||
extern bool PrintDebugCode;
|
extern bool PrintDebugCode;
|
||||||
extern int16 DebugCamMode;
|
extern int16 DebugCamMode;
|
||||||
DebugMenuAddVarBool8("Cam", "Use mouse Cam", &CCamera::m_bUseMouse3rdPerson, nil);
|
DebugMenuAddVarBool8("Cam", "Use mouse Cam", &CCamera::m_bUseMouse3rdPerson, nil);
|
||||||
|
@ -35,6 +35,8 @@ bool CWaterLevel::WavesCalculatedThisFrame;
|
|||||||
RpAtomic *CWaterLevel::ms_pWavyAtomic;
|
RpAtomic *CWaterLevel::ms_pWavyAtomic;
|
||||||
RpGeometry *CWaterLevel::apGeomArray[8];
|
RpGeometry *CWaterLevel::apGeomArray[8];
|
||||||
int16 CWaterLevel::nGeomUsed;
|
int16 CWaterLevel::nGeomUsed;
|
||||||
|
//"Custom" Don´t Render Water Toggle
|
||||||
|
bool gbDontRenderWater;
|
||||||
|
|
||||||
//RwTexture *gpWaterTex;
|
//RwTexture *gpWaterTex;
|
||||||
//RwRaster *gpWaterRaster;
|
//RwRaster *gpWaterRaster;
|
||||||
@ -332,6 +334,11 @@ SectorRadius(float fSize)
|
|||||||
void
|
void
|
||||||
CWaterLevel::RenderWater()
|
CWaterLevel::RenderWater()
|
||||||
{
|
{
|
||||||
|
//"Custom" Don´t Render Water Toggle
|
||||||
|
#ifndef MASTER
|
||||||
|
if (gbDontRenderWater)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
bool bUseCamEndX = false;
|
bool bUseCamEndX = false;
|
||||||
bool bUseCamStartY = false;
|
bool bUseCamStartY = false;
|
||||||
|
|
||||||
|
@ -65,6 +65,8 @@
|
|||||||
#define MAX_BOAT_WAKES 8
|
#define MAX_BOAT_WAKES 8
|
||||||
|
|
||||||
extern RwRaster* gpWaterRaster;
|
extern RwRaster* gpWaterRaster;
|
||||||
|
//"Custom" Don´t Render Water Toggle
|
||||||
|
extern bool gbDontRenderWater;
|
||||||
|
|
||||||
class CWaterLevel
|
class CWaterLevel
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user