sourcemm/episode2/console.cpp
branchsourcemm-1.6.0
changeset 428 40a9d2f61121
parent 370 4dc28ab1c722
child 429 cadecde4b802
     1.1 --- a/sourcemm/episode2/console.cpp	Thu Oct 04 19:46:28 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,55 +0,0 @@
     1.4 -/**
     1.5 - * vim: set ts=4 :
     1.6 - * ======================================================
     1.7 - * Metamod:Source
     1.8 - * Copyright (C) 2004-2007 AlliedModders LLC and authors.
     1.9 - * All rights reserved.
    1.10 - * ======================================================
    1.11 - *
    1.12 - * This software is provided 'as-is', without any express or implied warranty.
    1.13 - * In no event will the authors be held liable for any damages arising from 
    1.14 - * the use of this software.
    1.15 - * 
    1.16 - * Permission is granted to anyone to use this software for any purpose, 
    1.17 - * including commercial applications, and to alter it and redistribute it 
    1.18 - * freely, subject to the following restrictions:
    1.19 - *
    1.20 - * 1. The origin of this software must not be misrepresented; you must not 
    1.21 - * claim that you wrote the original software. If you use this software in a 
    1.22 - * product, an acknowledgment in the product documentation would be 
    1.23 - * appreciated but is not required.
    1.24 - * 2. Altered source versions must be plainly marked as such, and must not be
    1.25 - * misrepresented as being the original software.
    1.26 - * 3. This notice may not be removed or altered from any source distribution.
    1.27 - *
    1.28 - * Version: $Id$
    1.29 - */
    1.30 -
    1.31 -#include "console.h"
    1.32 -#include "provider_ep2.h"
    1.33 -
    1.34 -using namespace SourceHook;
    1.35 -
    1.36 -SMConVarAccessor g_SMConVarAccessor;
    1.37 -
    1.38 -bool SMConVarAccessor::RegisterConCommandBase(ConCommandBase *pCommand)
    1.39 -{
    1.40 -	pCommand->SetNext(NULL);
    1.41 -	icvar->RegisterConCommand(pCommand);
    1.42 -
    1.43 -	return true;
    1.44 -}
    1.45 -
    1.46 -bool SMConVarAccessor::Register(ConCommandBase *pCommand)
    1.47 -{
    1.48 -	pCommand->SetNext(NULL);
    1.49 -	icvar->RegisterConCommand(pCommand);
    1.50 -
    1.51 -	return true;
    1.52 -}
    1.53 -
    1.54 -void SMConVarAccessor::Unregister(ConCommandBase *pCommand)
    1.55 -{
    1.56 -	icvar->UnregisterConCommand(pCommand);
    1.57 -}
    1.58 -