added MNF_MergeDefinitionFile

This commit is contained in:
Pavol Marko 2004-07-28 19:28:36 +00:00
parent 9b2a1d204c
commit 7bd087281a

View File

@ -844,6 +844,12 @@ void MNF_Log(const char *fmt, ...)
va_end(arglst); va_end(arglst);
AMXXLOG_Log("%s", msg); AMXXLOG_Log("%s", msg);
} }
void MNF_MergeDefinitionFile(const char *file)
{
g_langMngr.MergeDefinitionFile(file);
}
// Fnptr Request function for the new interface // Fnptr Request function for the new interface
const char *g_LastRequestedFunc = NULL; const char *g_LastRequestedFunc = NULL;
#define REGISTER_FUNC(name, func) { name, (void*)func }, #define REGISTER_FUNC(name, func) { name, (void*)func },
@ -857,10 +863,11 @@ void *Module_ReqFnptr(const char *funcName)
}; };
static Func_s functions[] = { static Func_s functions[] = {
// Misc // Misc
REGISTER_FUNC("BuildPathname", build_pathname) REGISTER_FUNC("BuildPathname", build_pathname)
REGISTER_FUNC("PrintSrvConsole", print_srvconsole) REGISTER_FUNC("PrintSrvConsole", print_srvconsole)
REGISTER_FUNC("GetModname", MNF_GetModname) REGISTER_FUNC("GetModname", MNF_GetModname)
REGISTER_FUNC("Log", MNF_Log) REGISTER_FUNC("Log", MNF_Log)
REGISTER_FUNC("MergeDefinitionFile", MNF_MergeDefinitionFile)
// Amx scripts loading / unloading / managing // Amx scripts loading / unloading / managing
REGISTER_FUNC("GetAmxScript", MNF_GetAmxScript) REGISTER_FUNC("GetAmxScript", MNF_GetAmxScript)