core/metamod_console.cpp
changeset 601 bfbed17a3375
parent 599 5b906351da4d
child 637 b66489d8aedc
     1.1 --- a/core/metamod_console.cpp	Mon Nov 24 04:13:35 2008 -0600
     1.2 +++ b/core/metamod_console.cpp	Mon Nov 24 07:25:46 2008 -0600
     1.3 @@ -153,14 +153,19 @@
     1.4  		}
     1.5  		else if (strcmp(command, "refresh") == 0)
     1.6  		{
     1.7 -			char full_path[255];
     1.8 -			g_Metamod.PathFormat(full_path,
     1.9 -				sizeof(full_path),
    1.10 +			char filepath[PATH_SIZE], vdfpath[PATH_SIZE];
    1.11 +			g_Metamod.PathFormat(filepath,
    1.12 +				sizeof(filepath),
    1.13  				"%s/%s",
    1.14  				g_Metamod.GetBaseDir(), 
    1.15  				g_Metamod.GetPluginsFile());
    1.16 +			g_Metamod.PathFormat(vdfpath,
    1.17 +				sizeof(vdfpath),
    1.18 +				"%s/%s",
    1.19 +				g_Metamod.GetBaseDir(), 
    1.20 +				g_Metamod.GetVDFDir());
    1.21  
    1.22 -			mm_LoadPluginsFromFile(full_path);
    1.23 +			mm_LoadPlugins(filepath, vdfpath);
    1.24  
    1.25  			return true;
    1.26  		}
    1.27 @@ -663,7 +668,7 @@
    1.28  	CONMSG("  list         - List plugins\n");
    1.29  	CONMSG("  load         - Load a plugin\n");
    1.30  	CONMSG("  pause        - Pause a running plugin\n");
    1.31 -	CONMSG("  refresh      - Reparse plugins file\n");
    1.32 +	CONMSG("  refresh      - Reparse plugin files\n");
    1.33  	CONMSG("  retry        - Attempt to reload a plugin\n");
    1.34  	CONMSG("  unload       - Unload a loaded plugin\n");
    1.35  	CONMSG("  unpause      - Unpause a paused plugin\n");