mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-26 19:54:14 +01:00
more fixes
--HG-- branch : sourcemm-1.4.3 extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/sourcemm-1.4.3%40588
This commit is contained in:
parent
b8a88dbdb2
commit
7f594b8fa0
@ -760,6 +760,14 @@ void ClientCommand_handler(edict_t *client)
|
|||||||
RETURN_META(MRES_IGNORED);
|
RETURN_META(MRES_IGNORED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SMConVarAccessor::UnloadMetamodCommands()
|
||||||
|
{
|
||||||
|
Unregister(&metamod_version);
|
||||||
|
Unregister(&mm_pluginsfile);
|
||||||
|
Unregister(&mm_basedir);
|
||||||
|
Unregister(&meta_command);
|
||||||
|
}
|
||||||
|
|
||||||
const char *GetPluginsFile()
|
const char *GetPluginsFile()
|
||||||
{
|
{
|
||||||
return mm_pluginsfile.GetString();
|
return mm_pluginsfile.GetString();
|
||||||
|
@ -31,6 +31,7 @@ public:
|
|||||||
void MarkCommandsAsGameDLL();
|
void MarkCommandsAsGameDLL();
|
||||||
void Unregister(ConCommandBase *pCommand);
|
void Unregister(ConCommandBase *pCommand);
|
||||||
void UnregisterGameDLLCommands();
|
void UnregisterGameDLLCommands();
|
||||||
|
void UnloadMetamodCommands();
|
||||||
};
|
};
|
||||||
|
|
||||||
class CAlwaysRegisterableCommand : public ConCommandBase
|
class CAlwaysRegisterableCommand : public ConCommandBase
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include "vsp_listener.h"
|
#include "vsp_listener.h"
|
||||||
#include "CPlugin.h"
|
#include "CPlugin.h"
|
||||||
|
#include "concommands.h"
|
||||||
|
|
||||||
using namespace SourceMM;
|
using namespace SourceMM;
|
||||||
|
|
||||||
@ -95,6 +96,7 @@ void VSPListener::Unload()
|
|||||||
{
|
{
|
||||||
if (IsRootLoadMethod())
|
if (IsRootLoadMethod())
|
||||||
{
|
{
|
||||||
|
g_SMConVarAccessor.UnloadMetamodCommands();
|
||||||
UnloadMetamod(false);
|
UnloadMetamod(false);
|
||||||
}
|
}
|
||||||
m_Loadable = true;
|
m_Loadable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user