mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
Upload
This commit is contained in:
@@ -1006,18 +1006,26 @@ bool CEngineAPI::Connect( CreateInterfaceFn factory )
|
||||
// Store off the app system factory...
|
||||
g_AppSystemFactory = factory;
|
||||
|
||||
Warning( "CEngineAPI::Connect\n" );
|
||||
|
||||
if ( !BaseClass::Connect( factory ) )
|
||||
return false;
|
||||
|
||||
Warning( "CEngineAPI::Connect2\n" );
|
||||
|
||||
g_pFileSystem = g_pFullFileSystem;
|
||||
if ( !g_pFileSystem )
|
||||
return false;
|
||||
|
||||
Warning( "CEngineAPI::Connect3\n" );
|
||||
|
||||
g_pFileSystem->SetWarningFunc( Warning );
|
||||
|
||||
if ( !Shader_Connect( true ) )
|
||||
return false;
|
||||
|
||||
Warning( "CEngineAPI::Connect4\n" );
|
||||
|
||||
g_pPhysics = (IPhysics*)factory( VPHYSICS_INTERFACE_VERSION, NULL );
|
||||
|
||||
if ( !g_pStudioRender || !g_pDataCache || !g_pPhysics || !g_pMDLCache || !g_pMatSystemSurface || !g_pInputSystem /* || !g_pVideo */ )
|
||||
|
||||
Reference in New Issue
Block a user