core/logic/ExtensionSys.cpp
changeset 3961 0dc477c29792
parent 3882 7dae5b0b8e28
child 4005 617def4b1770
     1.1 --- a/core/logic/ExtensionSys.cpp	Mon Jul 29 10:03:18 2013 -0400
     1.2 +++ b/core/logic/ExtensionSys.cpp	Sun Jul 21 11:53:56 2013 -0400
     1.3 @@ -84,6 +84,24 @@
     1.4  		goto found;
     1.5  	}
     1.6  
     1.7 +	/* COMPAT HACK: One-halfth, if ep2v, see if there is an engine specific build in the new place with old naming */
     1.8 +	if (strcmp(smcore.gamesuffix, "2.tf2") == 0
     1.9 +		|| strcmp(smcore.gamesuffix, "2.dods") == 0
    1.10 +		|| strcmp(smcore.gamesuffix, "2.hl2dm") == 0
    1.11 +		)
    1.12 +	{
    1.13 +		g_pSM->BuildPath(Path_SM,
    1.14 +			path,
    1.15 +			PLATFORM_MAX_PATH,
    1.16 +			"extensions/%s.2.ep2v." PLATFORM_LIB_EXT,
    1.17 +			filename);
    1.18 +
    1.19 +		if (libsys->IsPathFile(path))
    1.20 +		{
    1.21 +			goto found;
    1.22 +		}
    1.23 +	}
    1.24 +
    1.25  	/* First see if there is an engine specific build! */
    1.26  	g_pSM->BuildPath(Path_SM, 
    1.27  		path,