aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/null/null.cpp5
-rw-r--r--backends/sdl/sdl.cpp1
-rw-r--r--backends/x11/x11.cpp5
3 files changed, 10 insertions, 1 deletions
diff --git a/backends/null/null.cpp b/backends/null/null.cpp
index 6a627787d3..d60206f4f4 100644
--- a/backends/null/null.cpp
+++ b/backends/null/null.cpp
@@ -106,6 +106,11 @@ static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
{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()
{
}
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp
index 92bdf58a48..0a2de847e1 100644
--- a/backends/sdl/sdl.cpp
+++ b/backends/sdl/sdl.cpp
@@ -48,7 +48,6 @@ const char* stackCookie = "$STACK: 655360\0";
int main(int argc, char *argv[]) {
-
#if (defined(WIN32) && defined(NO_CONSOLE)) || defined(__SYMBIAN32__)
//
// Set up redirects for stdout/stderr under Windows and Symbian.
diff --git a/backends/x11/x11.cpp b/backends/x11/x11.cpp
index 4b39e707bb..f52f5fdad5 100644
--- a/backends/x11/x11.cpp
+++ b/backends/x11/x11.cpp
@@ -58,6 +58,11 @@
#include <sys/ioctl.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() {
return OSystem_X11::create(0, 0);
}