fixed compat wrappers including core stuff
authorDavid Anderson <dvander@alliedmods.net>
Sun Oct 14 17:55:02 2007 +0000 (2007-10-14)
changeset 15454ceff5fa5fdd
parent 1544 feff70182207
child 1546 58871ccfe031
fixed compat wrappers including core stuff
public/IRootConsoleMenu.h
public/compat_wrappers.h
     1.1 --- a/public/IRootConsoleMenu.h	Sun Oct 14 02:30:16 2007 +0000
     1.2 +++ b/public/IRootConsoleMenu.h	Sun Oct 14 17:55:02 2007 +0000
     1.3 @@ -32,8 +32,6 @@
     1.4  #ifndef _INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_
     1.5  #define _INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_
     1.6  
     1.7 -#include <compat_wrappers.h>
     1.8 -
     1.9  /**
    1.10   * @file IRootConsoleMenu.h
    1.11   * @brief Defines the interface for adding options to the "sm" console command.
    1.12 @@ -45,6 +43,8 @@
    1.13   * we won't expose it until a legitimate reason comes up.
    1.14   */
    1.15  
    1.16 +class CCommand;
    1.17 +
    1.18  namespace SourceMod
    1.19  {
    1.20  	/**
     2.1 --- a/public/compat_wrappers.h	Sun Oct 14 02:30:16 2007 +0000
     2.2 +++ b/public/compat_wrappers.h	Sun Oct 14 17:55:02 2007 +0000
     2.3 @@ -33,9 +33,6 @@
     2.4  #define _INCLUDE_SOURCEMOD_COMPAT_WRAPPERS_H_
     2.5  
     2.6  #if defined ORANGEBOX_BUILD
     2.7 -	#include "convar_sm_ob.h"
     2.8 -	#include "sourcemm_api.h"
     2.9 -
    2.10  	#define CONVAR_REGISTER(object)				ConVar_Register(0, object)
    2.11  
    2.12  	inline bool IsFlagSet(ConCommandBase *cmd, int flag)
    2.13 @@ -47,8 +44,6 @@
    2.14  		engine->ServerCommand(buf);
    2.15  	}
    2.16  #else
    2.17 -	#include "sourcemm_api.h"
    2.18 -
    2.19  	class CCommand
    2.20  	{
    2.21  	public:
    2.22 @@ -75,6 +70,8 @@
    2.23  		engine->InsertServerCommand(buf);
    2.24  	}
    2.25  
    2.26 +	#define CVAR_INTERFACE_VERSION				VENGINE_CVAR_INTERFACE_VERSION
    2.27 +
    2.28  	#define CONVAR_REGISTER(object)				ConCommandBaseMgr::OneTimeInit(object)
    2.29  	typedef FnChangeCallback					FnChangeCallback_t;
    2.30  #endif //ORANGEBOX_BUILD