core/MemoryUtils.h
changeset 702 ff520b71249c
parent 701 85c77b23ae47
child 1231 17badaf66ce4
     1.1 --- a/core/MemoryUtils.h	Fri Apr 20 18:50:52 2007 +0000
     1.2 +++ b/core/MemoryUtils.h	Sat Apr 21 17:03:28 2007 +0000
     1.3 @@ -16,6 +16,7 @@
     1.4  #define _INCLUDE_SOURCEMOD_MEMORYUTILS_H_
     1.5  
     1.6  #include <IMemoryUtils.h>
     1.7 +#include "sm_globals.h"
     1.8  
     1.9  using namespace SourceMod;
    1.10  
    1.11 @@ -25,9 +26,13 @@
    1.12  	size_t memorySize;
    1.13  };
    1.14  
    1.15 -class MemoryUtils : public IMemoryUtils
    1.16 +class MemoryUtils : 
    1.17 +	public IMemoryUtils,
    1.18 +	public SMGlobalClass
    1.19  {
    1.20 -public:
    1.21 +public: // SMGlobalClass
    1.22 +	void OnSourceModAllInitialized();
    1.23 +public: // IMemoryUtils
    1.24  	void *FindPattern(const void *libPtr, const char *pattern, size_t len);
    1.25  private:
    1.26  	bool GetLibraryInfo(const void *libPtr, DynLibInfo &lib);