]> Dogcows Code - chaz/yoink/blobdiff - src/MainLayer.cc
stream-based logging classes
[chaz/yoink] / src / MainLayer.cc
index 38c849ebd08129cf2c2f83dcc447329f5546db3a..0b2ef3699f0576f1f70d87da7bbe8a59a8e12972 100644 (file)
@@ -76,7 +76,7 @@ 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());
        }
 }
 
@@ -206,9 +206,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: "
@@ -273,15 +271,15 @@ int main(int argc, char* argv[])
 
 
 #if            YOINK_LOGLEVEL >= 4
-       Mf::setLogLevel(Mf::LOG_DEBUG);
+       Mf::Log::setLevel(Mf::Log::DEBUGG);
 #elif  YOINK_LOGLEVEL >= 3
-       Mf::setLogLevel(Mf::LOG_INFO);
+       Mf::Log::setLevel(Mf::Log::INFO);
 #elif  YOINK_LOGLEVEL >= 2
-       Mf::setLogLevel(Mf::LOG_SCRIPT);
+       Mf::Log::setLevel(Mf::Log::SCRIPT);
 #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
 
 
This page took 0.018766 seconds and 4 git commands to generate.