From 4c1f97bd8170fae6c0ba0fb5153e1043d89ae4b4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 14 Oct 2007 17:55:02 +0000 Subject: [PATCH] fixed compat wrappers including core stuff --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401551 --- public/IRootConsoleMenu.h | 4 ++-- public/compat_wrappers.h | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/public/IRootConsoleMenu.h b/public/IRootConsoleMenu.h index 71ec1fd0..928d8758 100644 --- a/public/IRootConsoleMenu.h +++ b/public/IRootConsoleMenu.h @@ -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 --git a/public/compat_wrappers.h b/public/compat_wrappers.h index 56e9dfeb..282f8782 100644 --- a/public/compat_wrappers.h +++ b/public/compat_wrappers.h @@ -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