From d531d4234730edfb0e6ec095b34f22c1fb66754e Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Thu, 3 Jan 2008 13:28:04 +0000 Subject: Use system call to return to DC boot menu rather than relying on exit() to do the job. svn-id: r30197 --- backends/platform/dc/dcmain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backends/platform/dc/dcmain.cpp') diff --git a/backends/platform/dc/dcmain.cpp b/backends/platform/dc/dcmain.cpp index bada39180c..e21fd762c9 100644 --- a/backends/platform/dc/dcmain.cpp +++ b/backends/platform/dc/dcmain.cpp @@ -126,7 +126,7 @@ void OSystem_Dreamcast::setWindowCaption(const char *caption) } void OSystem_Dreamcast::quit() { - exit(0); + (*(void(**)(int))0x8c0000e0)(0); } /* Mutex handling */ @@ -222,7 +222,7 @@ int main() int res = scummvm_main(argc, argv); - exit(0); + g_system->quit(); } int DCLauncherDialog::runModal() @@ -230,7 +230,7 @@ int DCLauncherDialog::runModal() char *base = NULL, *dir = NULL; if (!selectGame(base, dir, icon)) - exit(0); + g_system->quit(); // Set the game path. ConfMan.addGameDomain(base); -- cgit v1.2.3