core/sourcemod.cpp
changeset 252 ce166c465bad
parent 214 4d97709c9376
child 255 236589ed0c92
     1.1 --- a/core/sourcemod.cpp	Mon Jan 01 18:36:27 2007 +0000
     1.2 +++ b/core/sourcemod.cpp	Mon Jan 01 19:50:16 2007 +0000
     1.3 @@ -5,7 +5,7 @@
     1.4  #include "vm/sp_vm_engine.h"
     1.5  #include <sh_string.h>
     1.6  #include "PluginSys.h"
     1.7 -#include "ForwardSys.h"
     1.8 +#include "ShareSys.h"
     1.9  
    1.10  SH_DECL_HOOK6(IServerGameDLL, LevelInit, SH_NOATTRIB, false, bool, const char *, const char *, const char *, const char *, bool, bool);
    1.11  
    1.12 @@ -16,6 +16,7 @@
    1.13  SourceHook::String g_BaseDir;
    1.14  ISourcePawnEngine *g_pSourcePawn = &g_SourcePawn;
    1.15  IVirtualMachine *g_pVM;
    1.16 +IdentityToken_t *g_pCoreIdent = NULL;
    1.17  
    1.18  typedef int (*GIVEENGINEPOINTER)(ISourcePawnEngine *);
    1.19  typedef unsigned int (*GETEXPORTCOUNT)();
    1.20 @@ -139,6 +140,9 @@
    1.21  		pBase = pBase->m_pGlobalClassNext;
    1.22  	}
    1.23  
    1.24 +	/* Make the global core identity */
    1.25 +	g_pCoreIdent = g_ShareSys.CreateCoreIdentity();
    1.26 +
    1.27  	/* Notify! */
    1.28  	pBase = SMGlobalClass::head;
    1.29  	while (pBase)