1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-26 19:54:14 +01:00
HLMetaModOfficial/sourcemm/concommands.h
Scott Ehlert 4e21dbaf87 -Fixed amb1416: Fixed a class of crashes caused by improper cvar removal handling. This encompasses a lot of crazy internal changes. Thank goodness I never have to do this for OB.
-Removed unused update tool
-Bumped version for tagging

--HG--
branch : sourcemm-1.4.4
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/sourcemm-1.4.4%40705
2008-07-26 05:45:07 +00:00

45 lines
1.0 KiB
C++

/* ======== SourceMM ========
* Copyright (C) 2004-2008 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
*
* Author(s): David "BAILOPAN" Anderson
* ============================
*/
#ifndef _INCLUDE_CONCOMMANDS_H
#define _INCLUDE_CONCOMMANDS_H
/**
* @brief Header for console commands
* @file concommands.h
*/
#include "convar_smm.h"
#include "sourcemm.h"
#include "sh_list.h"
class SMConVarAccessor : public IConCommandBaseAccessor
{
SourceHook::List<ConCommandBase*> m_RegisteredCommands;
ConCommandBase **m_TopConCommandBase;
public:
SMConVarAccessor();
virtual bool RegisterConCommandBase(ConCommandBase *pCommand);
bool Register(ConCommandBase *pCommand);
void MarkCommandsAsGameDLL();
bool InitConCommandBaseList();
void Unregister(ConCommandBase *pCommand);
void UnloadMetamodCommands();
};
void ClientCommand_handler(edict_t *client);
const char *GetPluginsFile();
const char *GetMetamodBaseDir();
extern SMConVarAccessor g_SMConVarAccessor;
#endif //_INCLUDE_CONCOMMANDS_H