mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 06:00:33 +01:00
engine: client: set failed status for vgui_support if we wasn't able to load one. Unload library in case of error
This commit is contained in:
parent
c532c3032c
commit
eeb170af22
@ -200,9 +200,14 @@ void VGui_Startup( const char *clientlib, int width, int height )
|
||||
if( !s_pVGuiSupport )
|
||||
{
|
||||
if( FS_FileExists( vguiloader, false ))
|
||||
{
|
||||
Con_Reportf( S_ERROR "Failed to load vgui_support library: %s\n", COM_GetLibraryError() );
|
||||
}
|
||||
else
|
||||
{
|
||||
Con_Reportf( "vgui_support: not found\n" );
|
||||
}
|
||||
failed = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -213,7 +218,11 @@ void VGui_Startup( const char *clientlib, int width, int height )
|
||||
vgui.initialized = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Con_Reportf( S_ERROR "Failed to find vgui_support library entry point!\n" );
|
||||
failed = true;
|
||||
COM_FreeLibrary( s_pVGuiSupport );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user