1.1 --- a/core/PluginSys.cpp Wed Nov 18 15:44:51 2009 -0800
1.2 +++ b/core/PluginSys.cpp Mon Nov 23 01:47:32 2009 -0800
1.3 @@ -2052,7 +2052,7 @@
1.4
1.5 char pluginfile[256];
1.6 const char *ext = g_LibSys.GetFileExtension(filename) ? "" : ".smx";
1.7 - UTIL_Format(pluginfile, sizeof(pluginfile), "%s%s", filename, ext);
1.8 + g_SourceMod.BuildPath(Path_None, pluginfile, sizeof(pluginfile), "%s%s", filename, ext);
1.9
1.10 IPlugin *pl = LoadPlugin(pluginfile, false, PluginType_MapUpdated, error, sizeof(error), &wasloaded);
1.11
1.12 @@ -2099,7 +2099,7 @@
1.13 {
1.14 char pluginfile[256];
1.15 const char *ext = g_LibSys.GetFileExtension(arg) ? "" : ".smx";
1.16 - UTIL_Format(pluginfile, sizeof(pluginfile), "%s%s", arg, ext);
1.17 + g_SourceMod.BuildPath(Path_None, pluginfile, sizeof(pluginfile), "%s%s", arg, ext);
1.18
1.19 if (!sm_trie_retrieve(m_LoadLookup, pluginfile, (void **)&pl))
1.20 {
1.21 @@ -2189,7 +2189,7 @@
1.22 {
1.23 char pluginfile[256];
1.24 const char *ext = g_LibSys.GetFileExtension(arg) ? "" : ".smx";
1.25 - UTIL_Format(pluginfile, sizeof(pluginfile), "%s%s", arg, ext);
1.26 + g_SourceMod.BuildPath(Path_None, pluginfile, sizeof(pluginfile), "%s%s", arg, ext);
1.27
1.28 if (!sm_trie_retrieve(m_LoadLookup, pluginfile, (void **)&pl))
1.29 {
1.30 @@ -2310,7 +2310,7 @@
1.31 {
1.32 char pluginfile[256];
1.33 const char *ext = g_LibSys.GetFileExtension(arg) ? "" : ".smx";
1.34 - UTIL_Format(pluginfile, sizeof(pluginfile), "%s%s", arg, ext);
1.35 + g_SourceMod.BuildPath(Path_None, pluginfile, sizeof(pluginfile), "%s%s", arg, ext);
1.36
1.37 if (!sm_trie_retrieve(m_LoadLookup, pluginfile, (void **)&pl))
1.38 {