initial import of binary logger support code

This commit is contained in:
David Anderson
2006-03-14 19:36:18 +00:00
parent dc8e162e26
commit adc2a7d169
6 changed files with 232 additions and 21 deletions

View File

@ -39,6 +39,7 @@
#include "fakemeta.h"
#include "newmenus.h"
#include "natives.h"
#include "binlog.h"
plugin_info_t Plugin_info =
{
@ -298,6 +299,13 @@ int C_Spawn(edict_t *pent)
// Set server flags
memset(g_players[0].flags, -1, sizeof(g_players[0].flags));
#if defined BINLOG_ENABLED
if (!g_BinLog.Open())
{
LOG_ERROR(PLID, "Binary log failed to open.");
}
#endif
// ###### Load AMX scripts
g_plugins.loadPluginsFromFile(get_localinfo("amxx_plugins", "addons/amxmodx/configs/plugins.ini"));
g_plugins.Finalize();
@ -317,6 +325,10 @@ int C_Spawn(edict_t *pent)
FF_ClientAuthorized = registerForward("client_authorized", ET_IGNORE, FP_CELL, FP_DONE);
FF_ChangeLevel = registerForward("server_changelevel", ET_STOP, FP_STRING, FP_DONE);
#if defined BINLOG_ENABLED
g_BinLog.CacheAllPlugins();
#endif
modules_callPluginsLoaded();
// ###### Call precache forward function