diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-01 19:34:47 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-01 19:34:47 +0000 |
commit | 6c8446cddb37df732fc9e5fc21f98e31968ce634 (patch) | |
tree | 25515ae78969e2f0ef216a5cbef8a650b217e8f8 /src/core/core.cc | |
parent | f794b9ee52293cefd6ac73fdf0d2a01c5388f057 (diff) |
interface cleanup
Diffstat (limited to 'src/core/core.cc')
-rw-r--r-- | src/core/core.cc | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/core/core.cc b/src/core/core.cc deleted file mode 100644 index 0a4ed60..0000000 --- a/src/core/core.cc +++ /dev/null @@ -1,50 +0,0 @@ -/* - core/core.cc - This file is part of the Osirion project and is distributed under - the terms of the GNU General Public License version 2 -*/ - -// project headers -#include "common/common.h" -#include "filesystem/filesystem.h" -#include "core/core.h" - -namespace core -{ - -void init() -{ - con_debug << "Initializing core..." << std::endl; - - common::init(); - - filesystem::init(); - - if (::core::Game::instance()) - ::core::Game::instance()->init(); - else - con_warn << "No game module found!" << std::endl; - -} - -void shutdown() -{ - con_debug << "Shutting down core..." << std::endl; - - if (::core::Game::instance()) - ::core::Game::instance()->shutdown(); - else - con_warn << "No game module found!" << std::endl; - - filesystem::shutdown(); - - common::shutdown(); -} - -void frame(float sec) -{ - if (::core::Game::instance()) - ::core::Game::instance()->frame(sec); -} - -} //namespace core |