ScummVM API documentation
PluginManager Class Reference

#include <plugins.h>

Inheritance diagram for PluginManager:
PluginManagerUncached

Public Member Functions

void addPluginProvider (PluginProvider *pp)
 
const PluginfindEnginePlugin (const Common::String &engineId)
 
virtual void init ()
 
virtual void loadFirstPlugin ()
 
virtual bool loadNextPlugin ()
 
virtual bool loadPluginFromEngineId (const Common::String &engineId)
 
virtual void updateConfigWithFileName (const Common::String &engineId)
 
virtual void loadDetectionPlugin ()
 
virtual void unloadDetectionPlugin ()
 
virtual void loadAllPlugins ()
 
virtual void loadAllPluginsOfType (PluginType type)
 
void unloadPluginsExcept (PluginType type, const Plugin *plugin, bool deletePlugin=true)
 
const PluginListgetPlugins (PluginType t)
 

Static Public Member Functions

static void destroy ()
 
static PluginManagerinstance ()
 

Protected Types

typedef Common::Array< PluginProvider * > ProviderList
 

Protected Member Functions

bool tryLoadPlugin (Plugin *plugin)
 
void addToPluginsInMemList (Plugin *plugin)
 
const PluginfindLoadedPlugin (const Common::String &engineId)
 
void unloadAllPlugins ()
 

Protected Attributes

PluginList _pluginsInMem [PLUGIN_TYPE_MAX]
 
ProviderList _providers
 

Static Protected Attributes

static PluginManager_instance
 

Detailed Description

Singleton class which manages all plugins, including loading them, managing all Plugin class instances, and unloading them.

Member Function Documentation

◆ findEnginePlugin()

const Plugin* PluginManager::findEnginePlugin ( const Common::String engineId)

A method which finds the METAENGINE plugin for the provided engineId

Parameters
engineIdThe engine ID
Returns
A plugin of type METAENGINE.

The documentation for this class was generated from the following file: