1
0
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:
David Anderson 2008-11-23 22:02:49 -06:00
parent 08f2df2d78
commit 58af1b7c4a
3 changed files with 7 additions and 10 deletions

View File

@ -73,7 +73,7 @@ CreateInterfaceFn CSmmAPI::fileSystemFactory(bool syn)
CreateInterfaceFn CSmmAPI::serverFactory(bool syn)
{
if (syn)
return CreateInterface;
return ServerFactory;
return g_GameDll.factory;
}

View File

@ -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.
*/

View File

@ -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 */