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
This commit is contained in:
Max Horn 2006-04-02 14:31:23 +00:00
parent 9217472f0e
commit e9bc5ba280
11 changed files with 40 additions and 19 deletions

View file

@ -91,12 +91,14 @@ int main(int argc, char *argv[]) {
#endif // defined(__SYMBIAN32__)
// Create our OSystem instance
g_system = new OSystem_SDL();
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;
}
#endif