1.1 --- a/loader/loader.cpp Thu Jul 15 15:14:00 2010 -0500
1.2 +++ b/loader/loader.cpp Thu Jul 22 03:22:27 2010 -0500
1.3 @@ -75,7 +75,8 @@
1.4 "2.ep2",
1.5 "2.ep2v",
1.6 "2.l4d",
1.7 - "2.l4d2"
1.8 + "2.l4d2",
1.9 + "2.swarm"
1.10 };
1.11
1.12 #if defined _WIN32
1.13 @@ -212,6 +213,13 @@
1.14 }
1.15
1.16 valve_cmdline = (GetCommandLine)mm_GetLibAddress(lib, "CommandLine_Tier0");
1.17 +
1.18 + /* '_Tier0' dropped on Alien Swarm version */
1.19 + if (valve_cmdline == NULL)
1.20 + {
1.21 + valve_cmdline = (GetCommandLine)mm_GetLibAddress(lib, "CommandLine");
1.22 + }
1.23 +
1.24 if (valve_cmdline == NULL)
1.25 {
1.26 /* We probably have a Ship engine. */
1.27 @@ -257,7 +265,11 @@
1.28 if (engineFactory("VEngineServer022", NULL) != NULL &&
1.29 engineFactory("VEngineCvar007", NULL) != NULL)
1.30 {
1.31 - if (engineFactory("VPrecacheSystem001", NULL) != NULL)
1.32 + if (engineFactory("EngineTraceServer004", NULL) != NULL)
1.33 + {
1.34 + return MMBackend_AlienSwarm;
1.35 + }
1.36 + else if (engineFactory("VPrecacheSystem001", NULL) != NULL)
1.37 {
1.38 return MMBackend_Left4Dead2;
1.39 }