diff options
| author | Marcus Comstedt | 2008-01-03 13:28:04 +0000 | 
|---|---|---|
| committer | Marcus Comstedt | 2008-01-03 13:28:04 +0000 | 
| commit | d531d4234730edfb0e6ec095b34f22c1fb66754e (patch) | |
| tree | 7739e65622276b21a1223548f0fa11d9fe74d166 /backends/platform/dc | |
| parent | 2bb81e2d207201265273e36bff8fadaeba6444a1 (diff) | |
| download | scummvm-rg350-d531d4234730edfb0e6ec095b34f22c1fb66754e.tar.gz scummvm-rg350-d531d4234730edfb0e6ec095b34f22c1fb66754e.tar.bz2 scummvm-rg350-d531d4234730edfb0e6ec095b34f22c1fb66754e.zip  | |
Use system call to return to DC boot menu rather than relying on exit()
to do the job.
svn-id: r30197
Diffstat (limited to 'backends/platform/dc')
| -rw-r--r-- | backends/platform/dc/dcmain.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
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);  | 
