diff --git a/core/metamod.cpp b/core/metamod.cpp index 64e217c..2733e56 100644 --- a/core/metamod.cpp +++ b/core/metamod.cpp @@ -1125,28 +1125,28 @@ ProcessVDF(const char *path, bool &skipped) if (alias[0] != '\0') g_PluginMngr.SetAlias(alias, file); - /* Attempt to find a file extension */ - if (UTIL_GetExtension(file) == NULL) - { - g_pMetamod->PathFormat(full_path, - sizeof(full_path), - "%s/%s%s", - g_pMetamod->GetBaseDir(), - file, -#if defined WIN32 || defined _WIN32 - ".dll" -#else - "_i486.so" -#endif - ); - } - else - { - g_pMetamod->PathFormat(full_path, - sizeof(full_path), - "%s/%s", - g_pMetamod->GetBaseDir(), - file); + /* Attempt to find a file extension */ + if (UTIL_GetExtension(file) == NULL) + { + g_pMetamod->PathFormat(full_path, + sizeof(full_path), + "%s/%s%s", + g_pMetamod->GetBaseDir(), + file, +#if defined WIN32 || defined _WIN32 + ".dll" +#else + "_i486.so" +#endif + ); + } + else + { + g_pMetamod->PathFormat(full_path, + sizeof(full_path), + "%s/%s", + g_pMetamod->GetBaseDir(), + file); } id = g_PluginMngr.Load(full_path, Pl_File, already, error, sizeof(error));