core/sourcemod.cpp
changeset 2562 af4b3f9a8168
parent 2555 ce70871a404b
child 2572 16a26a23c813
     1.1 --- a/core/sourcemod.cpp	Sun Feb 01 20:38:59 2009 -0500
     1.2 +++ b/core/sourcemod.cpp	Mon Feb 02 15:41:25 2009 -0500
     1.3 @@ -48,6 +48,7 @@
     1.4  #include "GameConfigs.h"
     1.5  #include "DebugReporter.h"
     1.6  #include "Profiler.h"
     1.7 +#include "frame_hooks.h"
     1.8  
     1.9  SH_DECL_HOOK6(IServerGameDLL, LevelInit, SH_NOATTRIB, false, bool, const char *, const char *, const char *, const char *, bool, bool);
    1.10  SH_DECL_HOOK0_void(IServerGameDLL, LevelShutdown, SH_NOATTRIB, false);
    1.11 @@ -379,7 +380,7 @@
    1.12  	g_Extensions.TryAutoload();
    1.13  
    1.14  	/* Fire the extensions ready message */
    1.15 -	g_SMAPI->MetaFactory(SOURCEMOD_NOTICE_EXTENSIONS, NULL, NULL);	
    1.16 +	g_SMAPI->MetaFactory(SOURCEMOD_NOTICE_EXTENSIONS, NULL, NULL);
    1.17  
    1.18  	/* Load any game extension */
    1.19  	const char *game_ext;
    1.20 @@ -690,6 +691,11 @@
    1.21  	return UTIL_FormatArgs(buffer, maxlength, fmt, ap);
    1.22  }
    1.23  
    1.24 +void SourceModBase::AddFrameAction(FRAMEACTION fn, void *data)
    1.25 +{
    1.26 +	::AddFrameAction(FrameAction(fn, data));
    1.27 +}
    1.28 +
    1.29  SMGlobalClass *SMGlobalClass::head = NULL;
    1.30  
    1.31  SMGlobalClass::SMGlobalClass()