aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/linuxmoto/linuxmoto-main.cpp
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-29 01:08:36 +0000
committerAlejandro Marzini2010-06-29 01:08:36 +0000
commitfd77e4b09c8ca80c8e449ad7266afaa494f98500 (patch)
tree232ce052cfecd5f4d32d15dabc6fc2d2e46e7a43 /backends/platform/linuxmoto/linuxmoto-main.cpp
parent494755cc36d4bd6bac46c63b6624fe5a294c493a (diff)
downloadscummvm-rg350-fd77e4b09c8ca80c8e449ad7266afaa494f98500.tar.gz
scummvm-rg350-fd77e4b09c8ca80c8e449ad7266afaa494f98500.tar.bz2
scummvm-rg350-fd77e4b09c8ca80c8e449ad7266afaa494f98500.zip
Modularized Linuxmoto port.
svn-id: r50474
Diffstat (limited to 'backends/platform/linuxmoto/linuxmoto-main.cpp')
-rw-r--r--backends/platform/linuxmoto/linuxmoto-main.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/backends/platform/linuxmoto/linuxmoto-main.cpp b/backends/platform/linuxmoto/linuxmoto-main.cpp
index b971a65f7e..dfd1428d8b 100644
--- a/backends/platform/linuxmoto/linuxmoto-main.cpp
+++ b/backends/platform/linuxmoto/linuxmoto-main.cpp
@@ -26,19 +26,20 @@
#include "common/scummsys.h"
#include "common/system.h"
-#include <SDL/SDL.h>
-#include <SDL/SDL_syswm.h>
-
#include "backends/platform/linuxmoto/linuxmoto-sdl.h"
#include "base/main.h"
-#include "base/internal_version.h"
int main(int argc, char *argv[]) {
+
+ // Create our OSystem instance
g_system = new OSystem_LINUXMOTO();
assert(g_system);
+
// Invoke the actual ScummVM main entry point:
int res = scummvm_main(argc, argv);
- g_system->quit(); // TODO: Consider removing / replacing this!
+
+ // Free OSystem
+ delete (OSystem_LINUXMOTO *)g_system;
return res;
}