X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMainLayer.cc;h=40377365d18149cf02c7ec8fec0ae4cbd1e4e899;hp=38c849ebd08129cf2c2f83dcc447329f5546db3a;hb=b357615aba1dbde81e3c6999366604e6001010a7;hpb=e495074443d9fd7bc16137084cf9de3d031b75c4 diff --git a/src/MainLayer.cc b/src/MainLayer.cc index 38c849e..4037736 100644 --- a/src/MainLayer.cc +++ b/src/MainLayer.cc @@ -76,7 +76,8 @@ void MainLayer::update(Mf::Engine& engine, Mf::Scalar t, Mf::Scalar dt) if (engine.getSize() == 1) { // this is the only layer left on the stack - engine.push(TitleLayer::alloc()); + //engine.push(TitleLayer::alloc()); + engine.clear(); } } @@ -206,9 +207,7 @@ void printInfo(int argc, char* argv[]) std::cout << " Executable: " << argv[0] << std::endl << " Version: "VERSION << std::endl -#if defined(__DATE__) && defined(__TIME__) - << " Built: "__DATE__" "__TIME__ << std::endl -#endif + << " Built: " << COMPILE_TIME << std::endl << " Compiler: "COMPILER_STRING << std::endl << " Assets: " << assets << std::endl << "Build options: " @@ -272,16 +271,14 @@ int main(int argc, char* argv[]) atexit(goodbye); -#if YOINK_LOGLEVEL >= 4 - Mf::setLogLevel(Mf::LOG_DEBUG); -#elif YOINK_LOGLEVEL >= 3 - Mf::setLogLevel(Mf::LOG_INFO); +#if YOINK_LOGLEVEL >= 3 + Mf::Log::setLevel(Mf::Log::INFO); #elif YOINK_LOGLEVEL >= 2 - Mf::setLogLevel(Mf::LOG_SCRIPT); + Mf::Log::setLevel(Mf::Log::WARNING); #elif YOINK_LOGLEVEL >= 1 - Mf::setLogLevel(Mf::LOG_ERROR); + Mf::Log::setLevel(Mf::Log::ERROR); #elif YOINK_LOGLEVEL - Mf::setLogLevel(Mf::LOG_NONE); + Mf::Log::setLevel(Mf::Log::NONE); #endif