Add cvar for RTech debugging and removed dev flag from 'launchplaylist'

This commit is contained in:
Kawe Mazidjatari 2022-08-22 21:15:46 +02:00
parent 5f73413286
commit ca0172ed1f
5 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,5 @@
#include "core/stdafx.h"
#include "tier1/cvar.h"
#include "rtech/rtech_utils.h"
#ifndef DEDICATED
#include "windows/id3dx.h"
@ -637,7 +638,8 @@ int32_t RTech::OpenFile(const CHAR* szFilePath, void* unused, LONGLONG* fileSize
if (hFile == INVALID_HANDLE_VALUE)
return -1;
DevMsg(eDLL_T::RTECH, "Opened file: '%s'\n", svModFile.c_str());
if (rtech_debug->GetBool())
DevMsg(eDLL_T::RTECH, "Opened file: '%s'\n", svModFile.c_str());
if (fileSizeOut)
{

View File

@ -203,6 +203,7 @@ void ConVar::Init(void) const
pylon_showdebug = ConVar::Create("pylon_showdebug" , "0" , FCVAR_DEVELOPMENTONLY, "Shows debug output for pylon.", false, 0.f, false, 0.f, nullptr, nullptr);
//-------------------------------------------------------------------------
// RTECH API |
rtech_debug = ConVar::Create("rtech_debug", "0", FCVAR_DEVELOPMENTONLY, "Shows debug output for the RTech system.", false, 0.f, false, 0.f, nullptr, nullptr);
//-------------------------------------------------------------------------
// RUI |
#ifndef DEDICATED

View File

@ -407,14 +407,15 @@ void ConCommand::InitShipped(void)
"connect",
"connectAsSpectator",
"connectWithKey",
"set",
"silentconnect",
"set",
"ping",
#endif // !DEDICATED
"exit",
"map",
"map_background",
"launchplaylist",
"quit",
"exit",
"restart",
"status",
"version",

View File

@ -169,6 +169,7 @@ ConVar* pylon_matchmaking_hostname = nullptr;
ConVar* pylon_showdebug = nullptr;
//-----------------------------------------------------------------------------
// RTECH API |
ConVar* rtech_debug = nullptr;
//-----------------------------------------------------------------------------
// RUI |
#ifndef DEDICATED

View File

@ -164,6 +164,7 @@ extern ConVar* pylon_matchmaking_hostname;
extern ConVar* pylon_showdebug;
//-------------------------------------------------------------------------
// RTECH API |
extern ConVar* rtech_debug;
//-------------------------------------------------------------------------
// RUI |
#ifndef DEDICATED