fixed compat wrappers including core stuff
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401551
This commit is contained in:
parent
0c80c793fe
commit
4c1f97bd81
@ -32,8 +32,6 @@
|
||||
#ifndef _INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_
|
||||
#define _INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_
|
||||
|
||||
#include <compat_wrappers.h>
|
||||
|
||||
/**
|
||||
* @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
|
||||
{
|
||||
/**
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user