1.1 --- a/sourcemm/sourcemm.cpp Thu Jul 07 18:41:08 2005 +0000
1.2 +++ b/sourcemm/sourcemm.cpp Thu Jul 07 20:58:05 2005 +0000
1.3 @@ -231,9 +231,9 @@
1.4
1.5 //Now it's safe to load plugins.
1.6 #if defined WIN32 || defined _WIN32
1.7 - snprintf(full_path, sizeof(full_path)-1, "%s\\addons\\metamod\\%s", g_ModPath.c_str(), "metaplugins.ini");
1.8 + snprintf(full_path, sizeof(full_path)-1, "%s\\%s", g_ModPath.c_str(), GetPluginsFile());
1.9 #else
1.10 - snprintf(full_path, sizeof(full_path)-1, "%s/addons/metamod/%s", g_ModPath.c_str(), "metaplugins.ini");
1.11 + snprintf(full_path, sizeof(full_path)-1, "%s/%s", g_ModPath.c_str(), GetPluginsFile());
1.12 #endif
1.13
1.14 LoadPluginsFromFile(full_path);
1.15 @@ -290,7 +290,7 @@
1.16 #elif defined __linux__
1.17 void __attribute__ ((destructor)) app_fini(void)
1.18 {
1.19 - if (!bInShutdown())
1.20 + if (!bInShutdown)
1.21 Shutdown();
1.22 if (g_GameDll.lib && g_GameDll.loaded)
1.23 dlclose(g_GameDll.lib);
1.24 @@ -338,7 +338,7 @@
1.25 UTIL_TrimLeft(buffer);
1.26 UTIL_TrimRight(buffer);
1.27
1.28 - if (buffer[0] == NULL || buffer[0] == ';' || strncmp(buffer, "//", 2) == 0)
1.29 + if (buffer[0] == '\0' || buffer[0] == ';' || strncmp(buffer, "//", 2) == 0)
1.30 continue;
1.31 //First find if it's an absolute path or not...
1.32 if (buffer[0] == '/' || strncmp(&(buffer[1]), ":\\", 2) == 0)