diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-03 01:43:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-03 01:43:03 +0000 |
commit | b4973888aeaea2dde6058bc06c3f6631349e7f3c (patch) | |
tree | 010de10692b330d7634ad3090fb94d14c101f484 /src/client/application.cc | |
parent | 67f8a7a783e550cab8e6a77d997b31815ee8cd7e (diff) |
command buffer handling
engine function parsing
buffered client console
Diffstat (limited to 'src/client/application.cc')
-rw-r--r-- | src/client/application.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/client/application.cc b/src/client/application.cc index 03dda2f..d3e7f4e 100644 --- a/src/client/application.cc +++ b/src/client/application.cc @@ -20,7 +20,7 @@ namespace client { void Application::quit(int status) { SDL_Quit(); - exit(status); + core::ApplicationInterface::quit(status); } void Application::init() @@ -28,7 +28,7 @@ void Application::init() // initialize core core::ApplicationInterface::init(); - con_debug << "Initializing client..." << std::endl; + con_debug << "Initializing client..." << std::endl; // Initialize the video subsystem video.init(); @@ -56,7 +56,7 @@ void Application::run() float elapsed = (float) ( current - chrono) / 1000.0f; chrono = current; - frame(elapsed); + core::ApplicationInterface::frame(elapsed); // update the video chronometers and draw video.draw(elapsed); @@ -70,15 +70,18 @@ void Application::run() void Application::shutdown() { con_debug << "Shutting down client..." << std::endl; - - input.shutdown(); + console.flush(); + input.shutdown(); + console.flush(); + video.shutdown(); + console.flush(); core::ApplicationInterface::shutdown(); + console.flush(); - quit(0); - + quit(0); } } |