Skip to content

Commit

Permalink
Minor cleanup and hid workshopstopper9000 dev convar
Browse files Browse the repository at this point in the history
  • Loading branch information
OrsellGaming committed Jan 20, 2025
1 parent 8a49c5d commit 234fa41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
5 changes: 2 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
// Purpose: WorkshopStopper9000 plugin
//
//===========================================================================//

#include "main.hpp"

// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"

void Log(int level, bool dev, const char* pMsgFormat, ...);
ConVar wss9000_developer("wss9000_developer", "0", FCVAR_NONE, "Enable for developer messages.");
ConVar wss9000_developer("wss9000_developer", "0", FCVAR_HIDDEN, "Enable for developer messages.");

//---------------------------------------------------------------------------------
// The plugin is a static singleton that is exported as an interface
Expand Down Expand Up @@ -164,7 +163,7 @@ void CWSS9000Plugin::LevelShutdown(void) {}
void CWSS9000Plugin::Pause(void) {}
void CWSS9000Plugin::UnPause(void) {}
void CWSS9000Plugin::ClientDisconnect(edict_t* pEntity) {}
void CWSS9000Plugin::ClientFullyConnect(edict_t* pEntity) {} // Purpose: Called when a player is fully connected to the server. Player entity still has not spawned in so manipulation is not possible.
void CWSS9000Plugin::ClientFullyConnect(edict_t* pEntity) {}
void CWSS9000Plugin::ClientPutInServer(edict_t* pEntity, char const* playername) {}
void CWSS9000Plugin::ClientSettingsChanged(edict_t* pEdict) {}
PLUGIN_RESULT CWSS9000Plugin::ClientConnect(bool* bAllowConnect, edict_t* pEntity, const char* pszName, const char* pszAddress, char* reject, int maxrejectlen) { return PLUGIN_CONTINUE; }
Expand Down
17 changes: 4 additions & 13 deletions main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,13 @@
// Purpose: WorkshopStopper9000 plugin
//
//===========================================================================//

#include "minhook/include/MinHook.h"
#include "cdll_int.h"
#include "engine/iserverplugin.h"
#include "minhook/include/MinHook.h"

#include "scanner.hpp"

#ifdef _WIN32
#pragma once
#include <Windows.h>
#endif

#include <sstream>

#define WSS9000_PLUGIN_VERSION "1.0.0" // Update this when a new version of the plugin is released
#define WSS9000_PLUGIN_VERSION "1.0.0" // Update this when a new version of the plugin is released.
#define WSS9000_PLUGIN_CONSOLE_COLOR Color(100, 192, 252, 255) // Light Blue

//---------------------------------------------------------------------------------
Expand All @@ -31,7 +23,7 @@ class CWSS9000Plugin : public IServerPluginCallbacks
CWSS9000Plugin();
~CWSS9000Plugin();

// IServerPluginCallbacks methods
// IServerPluginCallbacks methods.
virtual bool Load(CreateInterfaceFn interfaceFactory, CreateInterfaceFn gameServerFactory);
virtual void Unload(void);
virtual void Pause(void);
Expand All @@ -57,9 +49,8 @@ class CWSS9000Plugin : public IServerPluginCallbacks
virtual bool BNetworkCryptKeyValidate(uint32 unFromIP, uint16 usFromPort, uint32 unAccountIdProvidedByClient, int nEncryptionKeyIndexFromClient, int numEncryptedBytesFromClient, byte* pbEncryptedBufferFromClient, byte* pbPlainTextKeyForNetchan);

private:

// Plugin state member variables.
bool m_bPluginLoaded;
bool m_bNoUnload;
};

extern CWSS9000Plugin g_WSS9000Plugin;
1 change: 0 additions & 1 deletion scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Purpose: Portal 2: Multiplayer Mod server plugin memory scanner
//
//===========================================================================//

#include "scanner.hpp"

#ifdef _WIN32
Expand Down

0 comments on commit 234fa41

Please sign in to comment.