From bc44b5ec15e7d7f933e455e46c2f603e2800cd82 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 9 Jan 2005 01:41:43 +0000 Subject: Added new interface SeekableReadStream svn-id: r16493 --- common/system.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'common/system.h') diff --git a/common/system.h b/common/system.h index 8c672e18c9..39ff9b3d0d 100644 --- a/common/system.h +++ b/common/system.h @@ -29,14 +29,6 @@ #include "common/savefile.h" #include "common/singleton.h" -class OSystem; - -/** - * Custom object factory for OSystem. - */ -template <> -OSystem *Common::Singleton::makeInstance(); - /** * Interface for ScummVM backends. If you want to port ScummVM to a system @@ -49,6 +41,10 @@ OSystem *Common::Singleton::makeInstance(); * control audio CD playback, and sound output. */ class OSystem : public Common::Singleton { +protected: + static OSystem *createSystem(); + friend class Common::Singleton; + public: /** @name Feature flags */ @@ -682,6 +678,14 @@ public: //@} }; +/** + * Custom object factory for OSystem. + */ +template <> +OSystem *Common::Singleton::makeInstance(); + + + /** The global OSystem instance. Inited in main(). */ #define g_system (&OSystem::instance()) -- cgit v1.2.3