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
This commit is contained in:
Max Horn 2006-04-02 00:08:22 +00:00
parent a2c4795f32
commit 587431f8e8
15 changed files with 57 additions and 46 deletions

View file

@ -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();
}