1.1 --- a/sourcemm/concommands.cpp Wed Apr 19 23:47:25 2006 +0000
1.2 +++ b/sourcemm/concommands.cpp Fri Apr 21 01:58:22 2006 +0000
1.3 @@ -157,11 +157,8 @@
1.4 return;
1.5 } else if (strcmp(command, "refresh") == 0) {
1.6 char full_path[255];
1.7 -#if defined WIN32 || defined _WIN32
1.8 - snprintf(full_path, sizeof(full_path)-1, "%s\\addons\\metamod\\%s", g_ModPath.c_str(), "metaplugins.ini");
1.9 -#else
1.10 - snprintf(full_path, sizeof(full_path)-1, "%s/addons/metamod/%s", g_ModPath.c_str(), "metaplugins.ini");
1.11 -#endif
1.12 + g_SmmAPI.PathFormat(full_path, sizeof(full_path) - 1, "%s/%s", g_ModPath.c_str(), GetPluginsFile());
1.13 +
1.14 LoadPluginsFromFile(full_path);
1.15
1.16 return;