Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/application.cc')
-rw-r--r--src/server/application.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/server/application.cc b/src/server/application.cc
index b6cd91f..0d3fe4b 100644
--- a/src/server/application.cc
+++ b/src/server/application.cc
@@ -14,6 +14,10 @@ namespace server {
void Application::init()
{
+ // FIXME core should be able to load game.so
+ // force initialization of the game object
+ server::game = new game::Game();
+
// initialize core
core::ApplicationInterface::init();
@@ -44,7 +48,15 @@ void Application::shutdown()
core::ApplicationInterface::shutdown();
- exit(0);
+ quit(0);
+}
+
+void Application::quit(int status)
+{
+ // FIXME core should be able to unload game.so
+ delete server::game;
+
+ core::ApplicationInterface::quit(status);
}
}