diff options
author | Eugene Sandulenko | 2017-07-10 21:17:41 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-10 21:17:41 +0200 |
commit | 940b2a20f1cd490afb6e541a3cd26f0d3bdd1687 (patch) | |
tree | ed080d2edfcc191e2edd4ad61cb8e778e660d422 /base | |
parent | c61c0cb0ff6edb53d2ff32efa559e76dd4d086ec (diff) | |
download | scummvm-rg350-940b2a20f1cd490afb6e541a3cd26f0d3bdd1687.tar.gz scummvm-rg350-940b2a20f1cd490afb6e541a3cd26f0d3bdd1687.tar.bz2 scummvm-rg350-940b2a20f1cd490afb6e541a3cd26f0d3bdd1687.zip |
Revert "COMMON: Change way the Singleton instances are instantiated"
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e.
With this patch ConfigManager is broken.
Diffstat (limited to 'base')
-rw-r--r-- | base/plugins.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp index 2414102f59..39aaf2f73e 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -446,6 +446,10 @@ void PluginManager::addToPluginsInMemList(Plugin *plugin) { #include "engines/metaengine.h" +namespace Common { +DECLARE_SINGLETON(EngineManager); +} + /** * This function works for both cached and uncached PluginManagers. * For the cached version, most of the logic here will short circuit. @@ -535,6 +539,10 @@ const EnginePlugin::List &EngineManager::getPlugins() const { #include "audio/musicplugin.h" +namespace Common { +DECLARE_SINGLETON(MusicManager); +} + const MusicPlugin::List &MusicManager::getPlugins() const { return (const MusicPlugin::List &)PluginManager::instance().getPlugins(PLUGIN_TYPE_MUSIC); } |