From 4499f4df7570469daa263639f8e7052ba7ffabff Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sat, 3 Mar 2007 00:56:01 +0000 Subject: [PATCH] exposed the message interface --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40571 --- core/CUserMessages.cpp | 5 +++++ core/CUserMessages.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/CUserMessages.cpp b/core/CUserMessages.cpp index 25bc3ee2..d675b737 100644 --- a/core/CUserMessages.cpp +++ b/core/CUserMessages.cpp @@ -36,6 +36,11 @@ CUserMessages::~CUserMessages() sm_trie_destroy(m_Names); } +void CUserMessages::OnSourceModAllInitialized() +{ + g_ShareSys.AddInterface(NULL, this); +} + void CUserMessages::OnSourceModAllShutdown() { if (m_HookCount) diff --git a/core/CUserMessages.h b/core/CUserMessages.h index 3c79965e..d18ce29a 100644 --- a/core/CUserMessages.h +++ b/core/CUserMessages.h @@ -15,9 +15,8 @@ #ifndef _INCLUDE_SOURCEMOD_CUSERMESSAGES_H_ #define _INCLUDE_SOURCEMOD_CUSERMESSAGES_H_ -#include "sm_globals.h" +#include "ShareSys.h" #include -#include #include "sourcemm_api.h" #include "sm_trie.h" #include "CellRecipientFilter.h" @@ -37,6 +36,7 @@ public: CUserMessages(); ~CUserMessages(); public: //SMGlobalClass + void OnSourceModAllInitialized(); void OnSourceModAllShutdown(); public: //IUserMessages int GetMessageIndex(const char *msg);