Fix running ScummVM in plugin-mode
svn-id: r16360
This commit is contained in:
parent
49393c0f41
commit
b15d92e470
5 changed files with 14 additions and 2 deletions
|
@ -196,6 +196,8 @@ void DynamicPlugin::unloadPlugin() {
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|
||||||
|
DECLARE_SINGLETON(PluginManager);
|
||||||
|
|
||||||
PluginManager::PluginManager() {
|
PluginManager::PluginManager() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
|
|
||||||
#include "common/config-manager.h"
|
#include "common/config-manager.h"
|
||||||
|
|
||||||
|
DECLARE_SINGLETON(Common::ConfigManager);
|
||||||
|
|
||||||
#if defined(UNIX)
|
#if defined(UNIX)
|
||||||
#ifdef MACOSX
|
#ifdef MACOSX
|
||||||
#define DEFAULT_CONFIG_FILE "Library/Preferences/ScummVM Preferences"
|
#define DEFAULT_CONFIG_FILE "Library/Preferences/ScummVM Preferences"
|
||||||
|
|
|
@ -55,8 +55,12 @@ protected:
|
||||||
~Singleton<T>() { }
|
~Singleton<T>() { }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
//TODO: The following poses a problem when building ScummVM with plugins...
|
||||||
T* Singleton<T>::_singleton=0;
|
|
||||||
|
//template <class T>
|
||||||
|
//T* Singleton<T>::_singleton=0;
|
||||||
|
|
||||||
|
#define DECLARE_SINGLETON(T) T* Common::Singleton<T>::_singleton=0
|
||||||
|
|
||||||
} // End of namespace Common
|
} // End of namespace Common
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
//#define NEW_FONT_CODE
|
//#define NEW_FONT_CODE
|
||||||
|
|
||||||
|
|
||||||
|
DECLARE_SINGLETON(GUI::NewGui);
|
||||||
|
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,8 @@ static const TrackFormat TRACK_FORMATS[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
DECLARE_SINGLETON(AudioCDManager);
|
||||||
|
|
||||||
AudioCDManager::AudioCDManager() {
|
AudioCDManager::AudioCDManager() {
|
||||||
memset(&_cd, 0, sizeof(_cd));
|
memset(&_cd, 0, sizeof(_cd));
|
||||||
memset(_cached_tracks, 0, sizeof(_cached_tracks));
|
memset(_cached_tracks, 0, sizeof(_cached_tracks));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue