mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-11 14:42:05 +08:00
engine: ensure that we loading same client library
This commit is contained in:
@@ -218,7 +218,7 @@ VGui_Startup
|
||||
Load vgui_support library and call VGui_Startup
|
||||
================
|
||||
*/
|
||||
void VGui_Startup( int width, int height )
|
||||
void VGui_Startup( const char *clientlib, int width, int height )
|
||||
{
|
||||
static qboolean failed = false;
|
||||
|
||||
@@ -238,7 +238,7 @@ void VGui_Startup( int width, int height )
|
||||
VGui_FillAPIFromRef( &vgui, &ref.dllFuncs );
|
||||
|
||||
#ifdef XASH_INTERNAL_GAMELIBS
|
||||
s_pVGuiSupport = COM_LoadLibrary( "client", false, false );
|
||||
s_pVGuiSupport = COM_LoadLibrary( clientlib, false, false );
|
||||
|
||||
if( s_pVGuiSupport )
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ extern "C" {
|
||||
//
|
||||
// vgui_draw.c
|
||||
//
|
||||
void VGui_Startup( int width, int height );
|
||||
void VGui_Startup( const char *clientlib, int width, int height );
|
||||
void VGui_Shutdown( void );
|
||||
void VGui_Paint();
|
||||
void VGui_RunFrame();
|
||||
|
||||
Reference in New Issue
Block a user