Skip to content

Commit e126851

Browse files
committed
Removed wss9000_enable. It was useless.
1 parent 51538b3 commit e126851

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@
1010
// memdbgon must be the last include file in a .cpp file!!!
1111
#include "tier0/memdbgon.h"
1212

13+
void Log(int level, bool dev, const char* pMsgFormat, ...);
14+
ConVar wss9000_developer("wss9000_developer", "0", FCVAR_NONE, "Enable for developer messages.");
15+
1316
//---------------------------------------------------------------------------------
1417
// The plugin is a static singleton that is exported as an interface
1518
//---------------------------------------------------------------------------------
1619
CWSS9000Plugin g_WSS9000Plugin;
1720
EXPOSE_SINGLE_INTERFACE_GLOBALVAR(CWSS9000Plugin, IServerPluginCallbacks, INTERFACEVERSION_ISERVERPLUGINCALLBACKS, g_WSS9000Plugin);
1821

19-
// Debug ConVars
20-
ConVar wss9000_enable("wss9000_enable", "1", FCVAR_NONE, "Whether or not the WorkshopStopper9000 interlocking workshop stopping mechanism.");
21-
ConVar wss9000_developer("wss9000_developer", "0", FCVAR_NONE, "Enable for developer messages.");
22-
2322
//---------------------------------------------------------------------------------
2423
// Purpose: Logging for the plugin by adding a prefix and line break.
2524
// Max character limit of 1024 characters.
@@ -101,6 +100,7 @@ bool CWSS9000Plugin::Load(CreateInterfaceFn interfaceFactory, CreateInterfaceFn
101100
Log(0, true, "Connecting tier libraries...");
102101
ConnectTier1Libraries(&interfaceFactory, 1);
103102
ConnectTier2Libraries(&interfaceFactory, 1);
103+
ConVar_Register(0);
104104

105105
// big ol' try catch because game has a TerminateProcess handler for exceptions...
106106
// why this wasn't here is mystifying, - 10/2024 NULLderef

0 commit comments

Comments
 (0)