faluco@739: /** faluco@739: * vim: set ts=4 : faluco@739: * =============================================================== ds@757: * SourceMod BinTools Extension ds@757: * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. faluco@739: * =============================================================== faluco@739: * ds@757: * This program is free software; you can redistribute it and/or ds@757: * modify it under the terms of the GNU General Public License ds@757: * as published by the Free Software Foundation; either version 2 ds@757: * of the License, or (at your option) any later version. ds@757: * This program is distributed in the hope that it will be useful, ds@757: * but WITHOUT ANY WARRANTY; without even the implied warranty of ds@757: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ds@757: * GNU General Public License for more details. faluco@739: * ds@757: * You should have received a copy of the GNU General Public License ds@757: * along with this program; if not, write to the Free Software ds@757: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. faluco@739: * faluco@739: * Version: $Id$ faluco@739: */ faluco@739: faluco@739: #include "extension.h" faluco@739: #include "CallMaker.h" faluco@739: faluco@739: /** faluco@739: * @file extension.cpp ds@757: * @brief Implements BinTools extension code. faluco@739: */ faluco@739: ds@757: BinTools g_BinTools; /**< Global singleton for extension's main interface */ faluco@739: CallMaker g_CallMaker; faluco@739: ISourcePawnEngine *g_SPEngine; faluco@739: faluco@739: SMEXT_LINK(&g_BinTools); faluco@739: ds@757: bool BinTools::SDK_OnLoad(char *error, size_t maxlength, bool late) faluco@739: { faluco@739: g_SPEngine = g_pSM->GetScriptingEngine(); faluco@739: g_pShareSys->AddInterface(myself, &g_CallMaker); faluco@739: faluco@739: return true; faluco@739: }