diff options
author | Max Horn | 2006-04-02 14:31:23 +0000 |
---|---|---|
committer | Max Horn | 2006-04-02 14:31:23 +0000 |
commit | e9bc5ba280d4b893feb8b704423a9a757f0141bf (patch) | |
tree | 6589f8623fa517f2c9223f29cfa72b61eea2e6d8 /backends/wince | |
parent | 9217472f0e4e801659c0a448dcbf57c28fd36ee2 (diff) | |
download | scummvm-rg350-e9bc5ba280d4b893feb8b704423a9a757f0141bf.tar.gz scummvm-rg350-e9bc5ba280d4b893feb8b704423a9a757f0141bf.tar.bz2 scummvm-rg350-e9bc5ba280d4b893feb8b704423a9a757f0141bf.zip |
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
Diffstat (limited to 'backends/wince')
-rw-r--r-- | backends/wince/wince-sdl.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/wince/wince-sdl.cpp b/backends/wince/wince-sdl.cpp index e08cc965ff..23821a5ae4 100644 --- a/backends/wince/wince-sdl.cpp +++ b/backends/wince/wince-sdl.cpp @@ -146,15 +146,20 @@ int SDL_main(int argc, char **argv) { stderr_file = fopen("\\scummvm_stderr.txt", "w"); GUI::Actions::init(_gameDetector); + int rest = 0; + __try { g_system = OSystem_WINCE3_create(); assert(g_system); - return scummvm_main(_gameDetector, argc, argv); + + // Invoke the actual ScummVM main entry point: + res = scummvm_main(argc, argv); + g_system->quit(); // TODO: Consider removing / replacing this! } __except (handleException(GetExceptionInformation())) { } - return 0; + return res; } // ******************************************************************************************** |