Modules can now intercommunicate through RegisterFunction() - UNTESTED

Registering a function will make it available through ReqFunc,
This commit is contained in:
David Anderson
2005-07-05 22:01:29 +00:00
parent 3f2c117039
commit cc899d298d
5 changed files with 127 additions and 86 deletions

View File

@@ -276,6 +276,7 @@ extern ModuleCallReason g_ModuleCallReason; // modules.cpp
extern CModule *g_CurrentlyCalledModule; // modules.cpp
extern const char *g_LastRequestedFunc; // modules.cpp
extern CQueue<String> CurModuleList;
void Module_CacheFunctions();
void *Module_ReqFnptr(const char *funcName); // modules.cpp
@@ -295,5 +296,12 @@ extern int FF_InconsistentFile;
extern int FF_ClientAuthorized;
extern CFakeMeta g_FakeMeta;
struct func_s
{
void *pfn;
const char *desc;
};
#endif // AMXMODX_H