|
解决办法
// There's a version of this in bsplib.cpp!!! Make sure that they match.
void GetPlatformMapPath( const char *pMapPath, char *pPlatformMapPath, int maxLength )
{
Q_strncpy( pPlatformMapPath, pMapPath, maxLength );
// It's OK for this to be NULL on the dedicated server.
if( g_pMaterialSystemHardwareConfig )
{
int dxlevel = g_pMaterialSystemHardwareConfig->GetDXSupportLevel();
StripExtension( pPlatformMapPath );
/*注释下面这段(简单吧 )
if( dxlevel <= 60 )
{
Q_strncat( pPlatformMapPath, "_dx60", maxLength );
}
/*
Q_strncat( pPlatformMapPath, ".bsp", maxLength );
}
}
用批处理重新编译Engine就可以了.
还有一个好玩的,在上面代码中加一行:
Con_DPrintf("Hello, HL2!");
然后,你打map ttt看看............呵呵,有点感觉吧..
|
|