CVarConsole
This commit is contained in:
+13
-1
@@ -72,6 +72,7 @@
|
||||
#include "postfx.h"
|
||||
#include "custompipes.h"
|
||||
#include "screendroplets.h"
|
||||
#include "VarConsole.h"
|
||||
|
||||
GlobalScene Scene;
|
||||
|
||||
@@ -133,6 +134,9 @@ bool gbNewRenderer;
|
||||
#define CLEARMODE (rwCAMERACLEARZ)
|
||||
#endif
|
||||
|
||||
bool bDisplayNumPfAtomicsRendered = false;
|
||||
bool bDisplayPosn = false;
|
||||
|
||||
void
|
||||
ValidateVersion()
|
||||
{
|
||||
@@ -473,6 +477,11 @@ Initialise3D(void *param)
|
||||
{
|
||||
PUSH_MEMID(MEMID_RENDER);
|
||||
|
||||
#ifndef MASTER
|
||||
VarConsole.Add("Display number of atomics rendered", &bDisplayNumPfAtomicsRendered, true);
|
||||
VarConsole.Add("Display posn and framerate", &bDisplayPosn, true);
|
||||
#endif
|
||||
|
||||
if (RsRwInitialize(param))
|
||||
{
|
||||
POP_MEMID();
|
||||
@@ -1008,7 +1017,6 @@ return;
|
||||
void
|
||||
DisplayGameDebugText()
|
||||
{
|
||||
static bool bDisplayPosn = false;
|
||||
static bool bDisplayCheatStr = false; // custom
|
||||
|
||||
#ifndef FINAL
|
||||
@@ -1382,6 +1390,10 @@ RenderMenus(void)
|
||||
{
|
||||
FrontEndMenuManager.DrawFrontEnd();
|
||||
}
|
||||
#ifndef MASTER
|
||||
else
|
||||
VarConsole.Check();
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user