Remove CCommand from the logic bridge.
This commit is contained in:
parent
28346c99f2
commit
a2dac43833
@ -52,7 +52,7 @@ using namespace SourceHook;
|
|||||||
* Add 1 to the RHS of this expression to bump the intercom file
|
* Add 1 to the RHS of this expression to bump the intercom file
|
||||||
* This is to prevent mismatching core/logic binaries
|
* This is to prevent mismatching core/logic binaries
|
||||||
*/
|
*/
|
||||||
#define SM_LOGIC_MAGIC (0x0F47C0DE - 38)
|
#define SM_LOGIC_MAGIC (0x0F47C0DE - 39)
|
||||||
|
|
||||||
#if defined SM_LOGIC
|
#if defined SM_LOGIC
|
||||||
class IVEngineServer
|
class IVEngineServer
|
||||||
@ -275,8 +275,6 @@ private:
|
|||||||
const CVector<IExtension *> *list_;
|
const CVector<IExtension *> *list_;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CCommand;
|
|
||||||
|
|
||||||
struct sm_core_t
|
struct sm_core_t
|
||||||
{
|
{
|
||||||
/* Objects */
|
/* Objects */
|
||||||
@ -303,8 +301,6 @@ struct sm_core_t
|
|||||||
const char * (*GetCoreConfigValue)(const char*);
|
const char * (*GetCoreConfigValue)(const char*);
|
||||||
bool (*IsMapLoading)();
|
bool (*IsMapLoading)();
|
||||||
bool (*IsMapRunning)();
|
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);
|
int (*LoadMMSPlugin)(const char *file, bool *ok, char *error, size_t maxlength);
|
||||||
void (*UnloadMMSPlugin)(int id);
|
void (*UnloadMMSPlugin)(int id);
|
||||||
void (*DoGlobalPluginLoads)();
|
void (*DoGlobalPluginLoads)();
|
||||||
|
@ -466,16 +466,6 @@ static bool look_for_cmd_admin_flags(const char *cmd, FlagBits *pFlags)
|
|||||||
return g_ConCmds.LookForCommandAdminFlags(cmd, 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)
|
static int load_mms_plugin(const char *file, bool *ok, char *error, size_t maxlength)
|
||||||
{
|
{
|
||||||
bool ignore_already;
|
bool ignore_already;
|
||||||
@ -644,8 +634,6 @@ static sm_core_t core_bridge =
|
|||||||
get_core_config_value,
|
get_core_config_value,
|
||||||
is_map_loading,
|
is_map_loading,
|
||||||
is_map_running,
|
is_map_running,
|
||||||
read_cmd_argc,
|
|
||||||
read_cmd_arg,
|
|
||||||
load_mms_plugin,
|
load_mms_plugin,
|
||||||
unload_mms_plugin,
|
unload_mms_plugin,
|
||||||
do_global_plugin_loads,
|
do_global_plugin_loads,
|
||||||
|
Loading…
Reference in New Issue
Block a user