Fixing the X11 & NULL backends by adding main()

svn-id: r21553
This commit is contained in:
Max Horn 2006-04-02 10:01:58 +00:00
parent a4d075dad3
commit f8bb142f0b
3 changed files with 10 additions and 1 deletions

View file

@ -106,6 +106,11 @@ static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
{0, 0, 0} {0, 0, 0}
}; };
int main(int argc, char *argv[]) {
// Invoke the actual ScummVM main entry point:
return scummvm_main(argc, argv);
}
OSystem_NULL::OSystem_NULL() OSystem_NULL::OSystem_NULL()
{ {
} }

View file

@ -48,7 +48,6 @@ const char* stackCookie = "$STACK: 655360\0";
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
#if (defined(WIN32) && defined(NO_CONSOLE)) || defined(__SYMBIAN32__) #if (defined(WIN32) && defined(NO_CONSOLE)) || defined(__SYMBIAN32__)
// //
// Set up redirects for stdout/stderr under Windows and Symbian. // Set up redirects for stdout/stderr under Windows and Symbian.

View file

@ -58,6 +58,11 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <backends/x11/x11.h> #include <backends/x11/x11.h>
int main(int argc, char *argv[]) {
// Invoke the actual ScummVM main entry point:
return scummvm_main(argc, argv);
}
OSystem *OSystem_X11_create() { OSystem *OSystem_X11_create() {
return OSystem_X11::create(0, 0); return OSystem_X11::create(0, 0);
} }