Remove CCommand from the logic bridge.

This commit is contained in:
David Anderson 2015-08-28 15:12:20 -04:00
parent 28346c99f2
commit a2dac43833
2 changed files with 1 additions and 17 deletions

View File

@ -52,7 +52,7 @@ using namespace SourceHook;
* Add 1 to the RHS of this expression to bump the intercom file
* This is to prevent mismatching core/logic binaries
*/
#define SM_LOGIC_MAGIC (0x0F47C0DE - 38)
#define SM_LOGIC_MAGIC (0x0F47C0DE - 39)
#if defined SM_LOGIC
class IVEngineServer
@ -275,8 +275,6 @@ private:
const CVector<IExtension *> *list_;
};
class CCommand;
struct sm_core_t
{
/* Objects */
@ -303,8 +301,6 @@ struct sm_core_t
const char * (*GetCoreConfigValue)(const char*);
bool (*IsMapLoading)();
bool (*IsMapRunning)();
int (*Argc)(const CCommand &args);
const char * (*Arg)(const CCommand &args, int arg);
int (*LoadMMSPlugin)(const char *file, bool *ok, char *error, size_t maxlength);
void (*UnloadMMSPlugin)(int id);
void (*DoGlobalPluginLoads)();

View File

@ -466,16 +466,6 @@ static bool look_for_cmd_admin_flags(const char *cmd, FlagBits *pFlags)
return g_ConCmds.LookForCommandAdminFlags(cmd, pFlags);
}
int read_cmd_argc(const CCommand &args)
{
return args.ArgC();
}
static const char *read_cmd_arg(const CCommand &args, int arg)
{
return args.Arg(arg);
}
static int load_mms_plugin(const char *file, bool *ok, char *error, size_t maxlength)
{
bool ignore_already;
@ -644,8 +634,6 @@ static sm_core_t core_bridge =
get_core_config_value,
is_map_loading,
is_map_running,
read_cmd_argc,
read_cmd_arg,
load_mms_plugin,
unload_mms_plugin,
do_global_plugin_loads,