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/null | |
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/null')
-rw-r--r-- | backends/null/null.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/backends/null/null.cpp b/backends/null/null.cpp index 03939896b1..e4d7a7a2b1 100644 --- a/backends/null/null.cpp +++ b/backends/null/null.cpp @@ -107,10 +107,13 @@ static const OSystem::GraphicsMode s_supportedGraphicsModes[] = { }; int main(int argc, char *argv[]) { - // Invoke the actual ScummVM main entry point: g_system = OSystem_NULL_create(); assert(g_system); - return scummvm_main(argc, argv); + + // Invoke the actual ScummVM main entry point: + int res = scummvm_main(argc, argv); + g_system->quit(); // TODO: Consider removing / replacing this! + return res; } OSystem_NULL::OSystem_NULL() |