diff options
author | Max Horn | 2006-04-02 00:08:22 +0000 |
---|---|---|
committer | Max Horn | 2006-04-02 00:08:22 +0000 |
commit | 587431f8e838bd08d081d65f18b1f9b8f04566b8 (patch) | |
tree | b0d258b1c28ed19887de121773e723b966369e00 /backends/sdl/sdl.cpp | |
parent | a2c4795f326e62fe8ff74ce0e29e0174d4dab330 (diff) | |
download | scummvm-rg350-587431f8e838bd08d081d65f18b1f9b8f04566b8.tar.gz scummvm-rg350-587431f8e838bd08d081d65f18b1f9b8f04566b8.tar.bz2 scummvm-rg350-587431f8e838bd08d081d65f18b1f9b8f04566b8.zip |
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
Diffstat (limited to 'backends/sdl/sdl.cpp')
-rw-r--r-- | backends/sdl/sdl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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(); } |