diff --git a/public/IExtensionSys.h b/public/IExtensionSys.h index 845cde25..ec0b4211 100644 --- a/public/IExtensionSys.h +++ b/public/IExtensionSys.h @@ -357,7 +357,8 @@ namespace SourceMod * or dlclose. * * @param pInterface Pointer to an IExtensionInterface instance. - * @param filepath Absolute path to the extension's file. + * @param filepath Relative path to the extension's file, from + * mod folder. * @param filename Name to use to uniquely identify the extension. * The name should be generic, without any * platform-specific suffices. For example, diff --git a/public/mms_sample_ext/sm_ext.cpp b/public/mms_sample_ext/sm_ext.cpp index d9abdfb2..e68879ec 100644 --- a/public/mms_sample_ext/sm_ext.cpp +++ b/public/mms_sample_ext/sm_ext.cpp @@ -24,8 +24,7 @@ bool SM_LoadExtension(char *error, size_t maxlength) char path[256]; g_SMAPI->PathFormat(path, sizeof(path), - "%s/addons/myplugin/bin/myplugin%s", - g_SMAPI->GetBaseDir(), + "addons/myplugin/bin/myplugin%s", #if defined __linux__ "_i486.so" #else