Removed unnecessary logging to metamod-fatal.log when using GameDLL loading.
1 #ifndef _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
2 #define _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_
4 typedef void* (*QueryValveInterface)(const char *pName, int *pReturnCode);
5 class IServerPluginCallbacks;
9 QueryValveInterface engineFactory;
10 QueryValveInterface gsFactory;
11 IServerPluginCallbacks * vsp_callbacks;
12 unsigned int vsp_version;
18 virtual bool Load(const vsp_bridge_info *info, char *buffer, size_t maxlength) = 0;
19 virtual void Unload() = 0;
20 virtual const char *GetDescription() = 0;
23 struct gamedll_bridge_info
25 QueryValveInterface engineFactory;
26 QueryValveInterface fsFactory;
27 QueryValveInterface physicsFactory;
28 QueryValveInterface gsFactory;
30 unsigned int dllVersion;
37 virtual bool DLLInit_Pre(const gamedll_bridge_info *info, char *buffer, size_t maxlength) = 0;
38 virtual void DLLInit_Post(int *isgdUnload) = 0;
39 virtual void *QueryInterface(const char *name, int *ret) = 0;
40 virtual void Unload() = 0;
43 #endif /* _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_ */