diff -r 718f99cad77d -r 2d0dbd03c503 sourcemm/sourcemm.cpp --- a/sourcemm/sourcemm.cpp Fri Apr 21 01:58:22 2006 +0000 +++ b/sourcemm/sourcemm.cpp Fri Apr 21 02:30:02 2006 +0000 @@ -135,8 +135,13 @@ LogMessage("[META] Warning: Console messages will not be redirected to rcon console."); } + + const char *pluginFile = g_Engine.icvar->GetCommandLineValue("mm_pluginsfile"); + if (!pluginFile) + pluginFile = GetPluginsFile(); + char full_path[260]; - g_SmmAPI.PathFormat(full_path, sizeof(full_path)-1, "%s/%s", g_ModPath.c_str(), g_Engine.icvar->GetCommandLineValue("mm_pluginsfile")); + g_SmmAPI.PathFormat(full_path, sizeof(full_path)-1, "%s/%s", g_ModPath.c_str(), pluginFile); LoadPluginsFromFile(full_path);