From 587431f8e838bd08d081d65f18b1f9b8f04566b8 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 2 Apr 2006 00:08:22 +0000 Subject: Fully and officially renamed our main function to scummvm_main, thus making various backend specific hacks unnecessary. As a consequence, it is now the responsibility of the backend to define main. Hence I adapted the SDL backend accordingly. svn-id: r21542 --- backends/sdl/sdl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'backends/sdl') diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index 74dbb969e9..b1da08c60e 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -24,6 +24,7 @@ #include "backends/sdl/sdl-common.h" #include "common/config-manager.h" #include "common/util.h" +#include "base/main.h" #if defined(HAVE_CONFIG_H) #include "config.h" @@ -32,6 +33,12 @@ #include "scummvm.xpm" +#if !defined(_WIN32_WCE) && !defined(__SYMBIAN32__) && !defined(__MAEMO__) +int main(int argc, char *argv[]) { + return scummvm_main(argc, argv); +} +#endif + OSystem *OSystem_SDL_create() { return new OSystem_SDL(); } -- cgit v1.2.3