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);
AString m_Name
The name of the plugin, used to identify the plugin in the system and for inter-plugin calls.
AString m_FolderName
Name of the folder (in the Plugins folder) from which the plugin is loaded.
AString GetLocalFolder(void) const
Returns the folder relative to the MCS Executable, from which the plugin is loaded.
virtual void OnDisable(void)
Called as the last call into the plugin before it is unloaded.
AString m_LoadError
The error encountered while loading the plugin.
cPlugin(const AString &a_FolderName)
Creates a new instance.
cPluginManager::ePluginStatus m_Status
virtual void Unload(void)
Unloads the plugin.
void SetLoadError(const AString &a_LoadError)
Sets m_LoadError to the specified string and m_Status to psError.
static cPluginManager * Get(void)
Returns the instance of the Plugin Manager (there is only ever one)
@ psError
The plugin is enabled in settings.ini but has failed to load.
@ psUnloaded
The plugin is enabled in settings.ini but has been unloaded (by a command).
static AString GetPathSeparator()
Returns the path separator used by the current platform.