aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2002-09-20 00:12:58 +0000
committerMax Horn2002-09-20 00:12:58 +0000
commite0f11edf45361eb79ee281254602edc1748007e0 (patch)
treedf4e9a1cac5237e44ab9101baa9dcbe53e6009e7 /backends
parentfcfc72296ccf751d4900d05129cbefcc0823550b (diff)
downloadscummvm-rg350-e0f11edf45361eb79ee281254602edc1748007e0.tar.gz
scummvm-rg350-e0f11edf45361eb79ee281254602edc1748007e0.tar.bz2
scummvm-rg350-e0f11edf45361eb79ee281254602edc1748007e0.zip
quit should not exit(1) but rather exit(0) (mabye we should add a paramter 'bool success' to it that flags whether this is a normal exit or one with an error?)
svn-id: r4979
Diffstat (limited to 'backends')
-rw-r--r--backends/sdl/sdl-common.cpp2
-rw-r--r--backends/wince/pocketpc.cpp4
-rw-r--r--backends/x11/x11.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index 3c1fd3a151..b27b5ee5c1 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -681,7 +681,7 @@ void OSystem_SDL_Common::quit() {
SDL_CDClose(cdrom);
}
unload_gfx_mode();
- exit(1);
+ exit(0);
}
void OSystem_SDL_Common::draw_mouse() {
diff --git a/backends/wince/pocketpc.cpp b/backends/wince/pocketpc.cpp
index 6adb61b0b3..4d4406a3a6 100644
--- a/backends/wince/pocketpc.cpp
+++ b/backends/wince/pocketpc.cpp
@@ -1499,8 +1499,8 @@ uint32 OSystem_WINCE3::property(int param, Property *value) {
}
void OSystem_WINCE3::quit() {
- unload_gfx_mode();
- exit(1);
+ unload_gfx_mode();
+ exit(0);
}
/* CDRom Audio */
diff --git a/backends/x11/x11.cpp b/backends/x11/x11.cpp
index 3a2e362a1d..bf7b01e278 100644
--- a/backends/x11/x11.cpp
+++ b/backends/x11/x11.cpp
@@ -649,7 +649,7 @@ bool OSystem_X11::show_mouse(bool visible)
void OSystem_X11::quit()
{
- exit(1);
+ exit(0);
}
void OSystem_X11::draw_mouse()