14 m_FolderName(a_FolderName)
24 LOGD(
"Destroying plugin \"%s\".",
m_Name.c_str());
34 pm->RemovePluginCommands(
this);
35 pm->RemovePluginConsoleCommands(
this);
36 pm->RemoveHooks(
this);
cPlugin(const AString &a_FolderName)
Creates a new instance.
virtual void OnDisable(void)
Called as the last call into the plugin before it is unloaded.
AString m_FolderName
Name of the folder (in the Plugins folder) from which the plugin is loaded.
static cPluginManager * Get(void)
Returns the instance of the Plugin Manager (there is only ever one)
AString GetLocalFolder(void) const
Returns the folder relative to the MCS Executable, from which the plugin is loaded.
virtual void Unload(void)
Unloads the plugin.
cPluginManager::ePluginStatus m_Status
void SetLoadError(const AString &a_LoadError)
Sets m_LoadError to the specified string and m_Status to psError.
The plugin is enabled in settings.ini but has failed to load.
The plugin is enabled in settings.ini but has been unloaded (by a command).
AString m_LoadError
The error encountered while loading the plugin.
AString m_Name
The name of the plugin, used to identify the plugin in the system and for inter-plugin calls...