From e9bc5ba280d4b893feb8b704423a9a757f0141bf Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 2 Apr 2006 14:31:23 +0000 Subject: Backends now are also responsile for deiniting properly. In particular, moved the call to quit() from scummvm_main to the various backend main routines (porters may want to replace it by something different) svn-id: r21559 --- backends/maemo/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backends/maemo') diff --git a/backends/maemo/main.cpp b/backends/maemo/main.cpp index 3d155cc625..968641c0cc 100644 --- a/backends/maemo/main.cpp +++ b/backends/maemo/main.cpp @@ -68,12 +68,14 @@ int main(int argc, char *argv[]) { g_system = new OSystem_SDL(); assert(g_system); - scummvm_main(argc, argv); + // Invoke the actual ScummVM main entry point: + int res = scummvm_main(argc, argv); + g_system->quit(); // TODO: Consider removing / replacing this! /* Deinitialize OSSO */ //osso_deinitialize(osso_context); set_doubling(0); - return 0; + return res; } -- cgit v1.2.3