aboutsummaryrefslogtreecommitdiff
path: root/backends/maemo
diff options
context:
space:
mode:
authorMax Horn2006-04-02 14:16:31 +0000
committerMax Horn2006-04-02 14:16:31 +0000
commit9217472f0e4e801659c0a448dcbf57c28fd36ee2 (patch)
treeb880dfbd4a18f93f78931749004c3a4e128f2f59 /backends/maemo
parent72f4a1c76cb8aedf6f953e57090134320d7291b8 (diff)
downloadscummvm-rg350-9217472f0e4e801659c0a448dcbf57c28fd36ee2.tar.gz
scummvm-rg350-9217472f0e4e801659c0a448dcbf57c28fd36ee2.tar.bz2
scummvm-rg350-9217472f0e4e801659c0a448dcbf57c28fd36ee2.zip
With this change, backends are now responsible for instantiating their OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently)
svn-id: r21557
Diffstat (limited to 'backends/maemo')
-rw-r--r--backends/maemo/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/maemo/main.cpp b/backends/maemo/main.cpp
index 231f319158..3d155cc625 100644
--- a/backends/maemo/main.cpp
+++ b/backends/maemo/main.cpp
@@ -28,6 +28,7 @@
#include <SDL/SDL.h>
#include <SDL/SDL_syswm.h>
+#include "backends/sdl/sdl-common.h"
#include "base/main.h"
#include <hildon-widgets/hildon-app.h>
#include <gtk/gtk.h>
@@ -63,6 +64,10 @@ int main(int argc, char *argv[]) {
setpriority(PRIO_PROCESS, 0, 0);
set_doubling(0);
+
+ g_system = new OSystem_SDL();
+ assert(g_system);
+
scummvm_main(argc, argv);
/* Deinitialize OSSO */