|
10 | 10 | // memdbgon must be the last include file in a .cpp file!!! |
11 | 11 | #include "tier0/memdbgon.h" |
12 | 12 |
|
| 13 | +void Log(int level, bool dev, const char* pMsgFormat, ...); |
| 14 | +ConVar wss9000_developer("wss9000_developer", "0", FCVAR_NONE, "Enable for developer messages."); |
| 15 | + |
13 | 16 | //--------------------------------------------------------------------------------- |
14 | 17 | // The plugin is a static singleton that is exported as an interface |
15 | 18 | //--------------------------------------------------------------------------------- |
16 | 19 | CWSS9000Plugin g_WSS9000Plugin; |
17 | 20 | EXPOSE_SINGLE_INTERFACE_GLOBALVAR(CWSS9000Plugin, IServerPluginCallbacks, INTERFACEVERSION_ISERVERPLUGINCALLBACKS, g_WSS9000Plugin); |
18 | 21 |
|
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 | | - |
23 | 22 | //--------------------------------------------------------------------------------- |
24 | 23 | // Purpose: Logging for the plugin by adding a prefix and line break. |
25 | 24 | // Max character limit of 1024 characters. |
@@ -101,6 +100,7 @@ bool CWSS9000Plugin::Load(CreateInterfaceFn interfaceFactory, CreateInterfaceFn |
101 | 100 | Log(0, true, "Connecting tier libraries..."); |
102 | 101 | ConnectTier1Libraries(&interfaceFactory, 1); |
103 | 102 | ConnectTier2Libraries(&interfaceFactory, 1); |
| 103 | + ConVar_Register(0); |
104 | 104 |
|
105 | 105 | // big ol' try catch because game has a TerminateProcess handler for exceptions... |
106 | 106 | // why this wasn't here is mystifying, - 10/2024 NULLderef |
|
0 commit comments