# HG changeset patch # User David Anderson # Date 1192384502 0 # Node ID 4ceff5fa5fdd02a054faf638933bfd230e41632a # Parent feff7018220782852f954f6314d1712b8d124e53 fixed compat wrappers including core stuff diff -r feff70182207 -r 4ceff5fa5fdd public/IRootConsoleMenu.h --- a/public/IRootConsoleMenu.h Sun Oct 14 02:30:16 2007 +0000 +++ b/public/IRootConsoleMenu.h Sun Oct 14 17:55:02 2007 +0000 @@ -32,8 +32,6 @@ #ifndef _INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_ #define _INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_ -#include - /** * @file IRootConsoleMenu.h * @brief Defines the interface for adding options to the "sm" console command. @@ -45,6 +43,8 @@ * we won't expose it until a legitimate reason comes up. */ +class CCommand; + namespace SourceMod { /** diff -r feff70182207 -r 4ceff5fa5fdd public/compat_wrappers.h --- a/public/compat_wrappers.h Sun Oct 14 02:30:16 2007 +0000 +++ b/public/compat_wrappers.h Sun Oct 14 17:55:02 2007 +0000 @@ -33,9 +33,6 @@ #define _INCLUDE_SOURCEMOD_COMPAT_WRAPPERS_H_ #if defined ORANGEBOX_BUILD - #include "convar_sm_ob.h" - #include "sourcemm_api.h" - #define CONVAR_REGISTER(object) ConVar_Register(0, object) inline bool IsFlagSet(ConCommandBase *cmd, int flag) @@ -47,8 +44,6 @@ engine->ServerCommand(buf); } #else - #include "sourcemm_api.h" - class CCommand { public: @@ -75,6 +70,8 @@ engine->InsertServerCommand(buf); } + #define CVAR_INTERFACE_VERSION VENGINE_CVAR_INTERFACE_VERSION + #define CONVAR_REGISTER(object) ConCommandBaseMgr::OneTimeInit(object) typedef FnChangeCallback FnChangeCallback_t; #endif //ORANGEBOX_BUILD