From 307d7aeb4fc044d925295b6ed1d4c7c359a99920 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Thu, 24 Jun 2010 17:37:09 +0000 Subject: Added a init function to OSystem_SDL for early backend setup, and so allowing better sub classing. svn-id: r50224 --- backends/platform/sdl/sdl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backends/platform/sdl/sdl.h') diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h index ec6432830b..8740b82b9f 100644 --- a/backends/platform/sdl/sdl.h +++ b/backends/platform/sdl/sdl.h @@ -41,6 +41,12 @@ public: OSystem_SDL(); virtual ~OSystem_SDL(); + /** Pre-initialize backend, it should be called after + * instantiating the backend. Early needed managers + * are created here. + */ + virtual void init(); + virtual void initBackend(); virtual Common::HardwareKeySet *getHardwareKeySet(); -- cgit v1.2.3