diff -r d6930e51ad16 -r d799abb69fa7 loader/loader.cpp --- a/loader/loader.cpp Tue Jun 15 14:18:44 2010 -0700 +++ b/loader/loader.cpp Wed Jun 30 13:57:05 2010 -0500 @@ -231,8 +231,6 @@ valve_cmdline = (GetCommandLine)mm_GetLibAddress(lib, "CommandLine"); } - mm_UnloadLibrary(lib); - if (valve_cmdline == NULL) { mm_LogFatal("Could not locate any command line functionality"); @@ -241,6 +239,8 @@ game_name = valve_cmdline()->ParmValue("-game"); + mm_UnloadLibrary(lib); + /* This probably means that the game directory is actually the current directory */ if (!game_name) {