lots of updates

This commit is contained in:
2026-02-19 00:39:20 +02:00
parent 898bf90504
commit 4dd2e13c48
53 changed files with 1495 additions and 250 deletions

View File

@@ -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()
{
}