From 9b4d41d2d2a165a95b3b9223f53196fe51c0b14f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 13 Oct 2010 15:41:34 +0000 Subject: SWORD25: Convert object registries to singletons svn-id: r53431 --- engines/sword25/gfx/animationtemplateregistry.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/sword25/gfx/animationtemplateregistry.cpp') diff --git a/engines/sword25/gfx/animationtemplateregistry.cpp b/engines/sword25/gfx/animationtemplateregistry.cpp index 6f4af690c6..84ea026ce1 100644 --- a/engines/sword25/gfx/animationtemplateregistry.cpp +++ b/engines/sword25/gfx/animationtemplateregistry.cpp @@ -39,9 +39,12 @@ #include "sword25/gfx/animationtemplateregistry.h" #include "sword25/gfx/animationtemplate.h" -namespace Sword25 { +// TODO: Destroy the singletons when closing the engine; +// even better, turn them into non-singleton members of +// e.g. Sword25Engine. +DECLARE_SINGLETON(Sword25::AnimationTemplateRegistry) -Common::ScopedPtr AnimationTemplateRegistry::_instancePtr; +namespace Sword25 { void AnimationTemplateRegistry::logErrorLn(const char *message) const { BS_LOG_ERRORLN(message); -- cgit v1.2.3