/* 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