lots of updates
This commit is contained in:
@@ -1 +1,30 @@
|
||||
#include "cl_dll.h"
|
||||
#include "tier1/interface.h"
|
||||
#include "tier0/platform.h"
|
||||
#include "icvar.h"
|
||||
|
||||
void CClientGameDLL::Init()
|
||||
{
|
||||
void *pLib;
|
||||
|
||||
#ifdef __linux
|
||||
pLib = Plat_LoadLibrary("libclient.so");
|
||||
#endif
|
||||
if (!pLib)
|
||||
Plat_FatalErrorFunc("Failed to load server library\n");
|
||||
m_pLibrary = pLib;
|
||||
|
||||
CreateInterfaceFn pfnServerFactory = Sys_GetFactory(pLib);
|
||||
IEngineBridge *pEngineBridge = (IEngineBridge*)pfnServerFactory(ENGINE_BRIDGE_INTERFACE_VERSION, NULL);
|
||||
|
||||
pEngineBridge->ConnectInterface(RENDER_CONTEXT_INTERFACE_VERSION, m_pRenderContext);
|
||||
pEngineBridge->ConnectInterface("MainWindow", m_pGameWindow);
|
||||
pEngineBridge->Init();
|
||||
m_pBridge = pEngineBridge;
|
||||
}
|
||||
|
||||
void CClientGameDLL::Shutdown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user