Move OnConVarChanged into a global hook.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#define _INCLUDE_SOURCEMOD_CORE_PROVIDER_IMPL_H_
|
||||
|
||||
#include "logic/intercom.h"
|
||||
#include "GameHooks.h"
|
||||
#include <amtl/os/am-shared-library.h>
|
||||
|
||||
class CoreProviderImpl : public CoreProvider
|
||||
@@ -40,6 +41,9 @@ public:
|
||||
bool LoadBridge(char *error, size_t maxlength);
|
||||
void ShutdownBridge();
|
||||
|
||||
void InitializeHooks();
|
||||
void ShutdownHooks();
|
||||
|
||||
// Provider implementation.
|
||||
ConVar *FindConVar(const char *name) override;
|
||||
const char *GetCvarString(ConVar *cvar) override;
|
||||
@@ -61,6 +65,7 @@ public:
|
||||
private:
|
||||
ke::Ref<ke::SharedLib> logic_;
|
||||
LogicInitFunction logic_init_;
|
||||
GameHooks hooks_;
|
||||
};
|
||||
|
||||
extern CoreProviderImpl sCoreProviderImpl;
|
||||
|
||||
Reference in New Issue
Block a user