engine: client: vgui: unload client DLLL if no vgui_support export was found

This commit is contained in:
Alibek Omarov 2022-05-30 22:41:28 +03:00
parent d1de9e2802
commit b82d0bad7a
1 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,10 @@ void VGui_Startup( const char *clientlib, int width, int height )
vgui.initialized = true;
Con_Reportf( "vgui_support: found internal client support\n" );
}
else
{
COM_FreeLibrary( s_pVGuiSupport );
}
}
if( !vgui.initialized )