add debug logger

This commit is contained in:
nillerusr
2022-07-06 18:17:09 +03:00
parent b3ef8242db
commit dc5774a698
3 changed files with 90 additions and 7 deletions
+3
View File
@@ -765,6 +765,9 @@ bool CSourceAppSystemGroup::Create()
bool CSourceAppSystemGroup::PreInit()
{
if ( !CommandLine()->FindParm( "-nolog" ) )
DebugLogger()->Init("engine.log");
CreateInterfaceFn factory = GetFactory();
ConnectTier1Libraries( &factory, 1 );
ConVar_Register( );