]> Dogcows Code - chaz/yoink/blobdiff - src/MainLayer.cc
simplified win32 installer build script
[chaz/yoink] / src / MainLayer.cc
index 38c849ebd08129cf2c2f83dcc447329f5546db3a..40377365d18149cf02c7ec8fec0ae4cbd1e4e899 100644 (file)
@@ -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
 
 
This page took 0.019804 seconds and 4 git commands to generate.