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/x11 | |
| 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/x11')
| -rw-r--r-- | backends/x11/x11.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/x11/x11.cpp b/backends/x11/x11.cpp index 778028b031..1ceb20703b 100644 --- a/backends/x11/x11.cpp +++ b/backends/x11/x11.cpp @@ -63,7 +63,9 @@ int main(int argc, char *argv[]) { assert(g_system); // Invoke the actual ScummVM main entry point: - return scummvm_main(argc, argv); + int res = scummvm_main(argc, argv); + g_system->quit(); // TODO: Consider removing / replacing this! + return res; } OSystem *OSystem_X11::create(int gfx_mode, bool full_screen) { |
