sourcemm/sourcemm.cpp
changeset 191 2d0dbd03c503
parent 190 718f99cad77d
child 192 47649a1d49e3
     1.1 --- a/sourcemm/sourcemm.cpp	Fri Apr 21 01:58:22 2006 +0000
     1.2 +++ b/sourcemm/sourcemm.cpp	Fri Apr 21 02:30:02 2006 +0000
     1.3 @@ -135,8 +135,13 @@
     1.4  		LogMessage("[META] Warning: Console messages will not be redirected to rcon console.");
     1.5  	}
     1.6  
     1.7 +
     1.8 +	const char *pluginFile = g_Engine.icvar->GetCommandLineValue("mm_pluginsfile");
     1.9 +	if (!pluginFile) 
    1.10 +		pluginFile = GetPluginsFile();
    1.11 +
    1.12  	char full_path[260];
    1.13 -	g_SmmAPI.PathFormat(full_path, sizeof(full_path)-1, "%s/%s", g_ModPath.c_str(), g_Engine.icvar->GetCommandLineValue("mm_pluginsfile"));
    1.14 +	g_SmmAPI.PathFormat(full_path, sizeof(full_path)-1, "%s/%s", g_ModPath.c_str(), pluginFile);
    1.15  
    1.16  	LoadPluginsFromFile(full_path);
    1.17