extensions/bintools/extension.cpp
author David Anderson <dvander@alliedmods.net>
Fri Jun 22 17:24:48 2007 +0000 (2007-06-22)
changeset 1002 786f5abf93ea
parent 757 b799caa9a190
child 1226 478550a4d5ec
permissions -rw-r--r--
fixed a bug where the "keyOnly" parameter to KvGotoNextKey was read backwards
faluco@739
     1
/**
faluco@739
     2
 * vim: set ts=4 :
faluco@739
     3
 * ===============================================================
ds@757
     4
 * SourceMod BinTools Extension
ds@757
     5
 * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved.
faluco@739
     6
 * ===============================================================
faluco@739
     7
 *
ds@757
     8
 * This program is free software; you can redistribute it and/or
ds@757
     9
 * modify it under the terms of the GNU General Public License
ds@757
    10
 * as published by the Free Software Foundation; either version 2
ds@757
    11
 * of the License, or (at your option) any later version.
ds@757
    12
 * This program is distributed in the hope that it will be useful,
ds@757
    13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ds@757
    14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ds@757
    15
 * GNU General Public License for more details.
faluco@739
    16
 * 
ds@757
    17
 * You should have received a copy of the GNU General Public License
ds@757
    18
 * along with this program; if not, write to the Free Software
ds@757
    19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
faluco@739
    20
 *
faluco@739
    21
 * Version: $Id$
faluco@739
    22
 */
faluco@739
    23
faluco@739
    24
#include "extension.h"
faluco@739
    25
#include "CallMaker.h"
faluco@739
    26
faluco@739
    27
/**
faluco@739
    28
 * @file extension.cpp
ds@757
    29
 * @brief Implements BinTools extension code.
faluco@739
    30
 */
faluco@739
    31
ds@757
    32
BinTools g_BinTools;		/**< Global singleton for extension's main interface */
faluco@739
    33
CallMaker g_CallMaker;
faluco@739
    34
ISourcePawnEngine *g_SPEngine;
faluco@739
    35
faluco@739
    36
SMEXT_LINK(&g_BinTools);
faluco@739
    37
ds@757
    38
bool BinTools::SDK_OnLoad(char *error, size_t maxlength, bool late)
faluco@739
    39
{
faluco@739
    40
	g_SPEngine = g_pSM->GetScriptingEngine();
faluco@739
    41
	g_pShareSys->AddInterface(myself, &g_CallMaker);
faluco@739
    42
faluco@739
    43
	return true;
faluco@739
    44
}