added new path format functions
exposed helpers as ISourceMod --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40322
This commit is contained in:
@@ -100,7 +100,7 @@ void CPlugin::InitIdentity()
|
||||
CPlugin *CPlugin::CreatePlugin(const char *file, char *error, size_t maxlength)
|
||||
{
|
||||
char fullpath[PLATFORM_MAX_PATH+1];
|
||||
g_LibSys.PathFormat(fullpath, sizeof(fullpath), "%s/plugins/%s", g_SourceMod.GetSMBaseDir(), file);
|
||||
g_SourceMod.BuildPath(Path_SM, fullpath, sizeof(fullpath), "plugins/%s", file);
|
||||
FILE *fp = fopen(fullpath, "rb");
|
||||
|
||||
CPlugin *pPlugin = new CPlugin(file);
|
||||
|
||||
Reference in New Issue
Block a user