mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-03-21 12:28:56 +01:00
Fixed regression in ISmmAPI::serverFactory.
This commit is contained in:
parent
08f2df2d78
commit
58af1b7c4a
@ -73,7 +73,7 @@ CreateInterfaceFn CSmmAPI::fileSystemFactory(bool syn)
|
||||
CreateInterfaceFn CSmmAPI::serverFactory(bool syn)
|
||||
{
|
||||
if (syn)
|
||||
return CreateInterface;
|
||||
return ServerFactory;
|
||||
return g_GameDll.factory;
|
||||
}
|
||||
|
||||
|
@ -74,6 +74,11 @@ GetGameDllBridge()
|
||||
return &mm14_gamedll_bridge;
|
||||
}
|
||||
|
||||
void *ServerFactory(const char *name, int *code)
|
||||
{
|
||||
return mm14_gamedll_bridge.QueryInterface(name, code);
|
||||
}
|
||||
|
||||
/* Wrapper function. This is called when the GameDLL thinks it's using
|
||||
* the engine's real engineFactory.
|
||||
*/
|
||||
|
@ -42,18 +42,10 @@
|
||||
#define MIN_GAMEDLL_VERSION 3
|
||||
#define MAX_GAMEDLL_VERSION 8
|
||||
|
||||
/**
|
||||
* @brief Entry point for HL2 Engine
|
||||
*/
|
||||
SMM_API void *CreateInterface(const char *name, int *code);
|
||||
|
||||
/** @brief Wrapper to catch GameDLL calls */
|
||||
void *ServerFactory(const char *name, int *code);
|
||||
void *EngineFactory(const char *name, int *code);
|
||||
|
||||
/** @brief Wrapper to catch GameDLL calls */
|
||||
void *PhysicsFactory(const char *name, int *code);
|
||||
|
||||
/** @brief Wrapper to catch GameDLL calls */
|
||||
void *FileSystemFactory(const char *name, int *code);
|
||||
|
||||
/** @brief Loads all plugins found in a file */
|
||||
|
Loading…
x
Reference in New Issue
Block a user