[Scummvm-cvs-logs] SF.net SVN: scummvm: [30197] scummvm

marcus_c at users.sourceforge.net marcus_c at users.sourceforge.net
Thu Jan 3 14:28:06 CET 2008


Revision: 30197
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30197&view=rev
Author:   marcus_c
Date:     2008-01-03 05:28:04 -0800 (Thu, 03 Jan 2008)

Log Message:
-----------
Use system call to return to DC boot menu rather than relying on exit()
to do the job.

Modified Paths:
--------------
    scummvm/branches/branch-0-11-0/backends/platform/dc/dcmain.cpp
    scummvm/trunk/backends/platform/dc/dcmain.cpp

Modified: scummvm/branches/branch-0-11-0/backends/platform/dc/dcmain.cpp
===================================================================
--- scummvm/branches/branch-0-11-0/backends/platform/dc/dcmain.cpp	2008-01-03 10:43:50 UTC (rev 30196)
+++ scummvm/branches/branch-0-11-0/backends/platform/dc/dcmain.cpp	2008-01-03 13:28:04 UTC (rev 30197)
@@ -126,7 +126,7 @@
 }
 
 void OSystem_Dreamcast::quit() {
-  exit(0);
+  (*(void(**)(int))0x8c0000e0)(0);
 }
 
 /* Mutex handling */
@@ -222,7 +222,7 @@
 
   int res = scummvm_main(argc, argv);
 
-  exit(0);
+  g_system->quit();
 }
 
 int DCLauncherDialog::runModal()
@@ -230,7 +230,7 @@
   char *base = NULL, *dir = NULL;
 
   if (!selectGame(base, dir, icon))
-    exit(0);
+    g_system->quit();
 
   // Set the game path.
   ConfMan.addGameDomain(base);

Modified: scummvm/trunk/backends/platform/dc/dcmain.cpp
===================================================================
--- scummvm/trunk/backends/platform/dc/dcmain.cpp	2008-01-03 10:43:50 UTC (rev 30196)
+++ scummvm/trunk/backends/platform/dc/dcmain.cpp	2008-01-03 13:28:04 UTC (rev 30197)
@@ -126,7 +126,7 @@
 }
 
 void OSystem_Dreamcast::quit() {
-  exit(0);
+  (*(void(**)(int))0x8c0000e0)(0);
 }
 
 /* Mutex handling */
@@ -222,7 +222,7 @@
 
   int res = scummvm_main(argc, argv);
 
-  exit(0);
+  g_system->quit();
 }
 
 int DCLauncherDialog::runModal()
@@ -230,7 +230,7 @@
   char *base = NULL, *dir = NULL;
 
   if (!selectGame(base, dir, icon))
-    exit(0);
+    g_system->quit();
 
   // Set the game path.
   ConfMan.addGameDomain(base);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list