loader/loader.cpp
changeset 721 d799abb69fa7
parent 705 a1001281dcb1
child 725 9eec529c3caa
     1.1 --- a/loader/loader.cpp	Tue Jun 15 14:18:44 2010 -0700
     1.2 +++ b/loader/loader.cpp	Wed Jun 30 13:57:05 2010 -0500
     1.3 @@ -231,8 +231,6 @@
     1.4  		valve_cmdline = (GetCommandLine)mm_GetLibAddress(lib, "CommandLine");
     1.5  	}
     1.6  
     1.7 -	mm_UnloadLibrary(lib);
     1.8 -
     1.9  	if (valve_cmdline == NULL)
    1.10  	{
    1.11  		mm_LogFatal("Could not locate any command line functionality");
    1.12 @@ -241,6 +239,8 @@
    1.13  
    1.14  	game_name = valve_cmdline()->ParmValue("-game");
    1.15  
    1.16 +	mm_UnloadLibrary(lib);
    1.17 +
    1.18  	/* This probably means that the game directory is actually the current directory */
    1.19  	if (!game_name)
    1.20  	{