1.1 --- a/loader/loader_bridge.h Wed Nov 19 01:17:48 2008 -0600
1.2 +++ b/loader/loader_bridge.h Sun Nov 23 21:21:49 2008 -0600
1.3 @@ -20,5 +20,25 @@
1.4 virtual const char *GetDescription() = 0;
1.5 };
1.6
1.7 +struct gamedll_bridge_info
1.8 +{
1.9 + QueryValveInterface engineFactory;
1.10 + QueryValveInterface fsFactory;
1.11 + QueryValveInterface physicsFactory;
1.12 + QueryValveInterface gsFactory;
1.13 + void * pGlobals;
1.14 + unsigned int dllVersion;
1.15 + void * isgd;
1.16 +};
1.17 +
1.18 +class IGameDllBridge
1.19 +{
1.20 +public:
1.21 + virtual bool DLLInit_Pre(const gamedll_bridge_info *info, char *buffer, size_t maxlength) = 0;
1.22 + virtual void DLLInit_Post() = 0;
1.23 + virtual void *QueryInterface(const char *name, int *ret) = 0;
1.24 + virtual void Unload() = 0;
1.25 +};
1.26 +
1.27 #endif /* _INCLUDE_METAMOD_SOURCE_LOADER_BRIDGE_H_ */
1.28