X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMain.cc;h=835f3d06bc099c6cc3595e6193ab462d9aa308e8;hp=7b31ae4f83283ccbf65a91fe32e9e999f65ea626;hb=321f005b45580b8c2c14ddc577fb6ca7780a68c5;hpb=e0c0a3b5e7337cde55e520801d2e59e03dc97d9c diff --git a/src/Main.cc b/src/Main.cc index 7b31ae4..835f3d0 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -40,8 +40,6 @@ Main::Main(Mf::Settings& settings, Mf::Video& video) : mNewContextDispatch = dispatch.addTarget("video.newcontext", boost::bind(&Main::setupGL)); setupGL(); - - addChild(TitleLayer::alloc()); } @@ -49,9 +47,10 @@ void Main::update(Mf::Scalar t, Mf::Scalar dt) { if (children().size() == 0) { - Mf::logWarning("main view has no children"); - stop(); - return; + //Mf::logWarning("main view has no children"); + //stop(); + //return; + addChild(TitleLayer::alloc()); } Mf::View::update(t, dt); @@ -128,7 +127,8 @@ std::string Main::getConfigPath() // 3. $HOME/.yoinkrc // 4. YOINKRC (environment) - std::string path = Mf::Resource::getPath("yoinkrc"); + std::string path("yoinkrc"); + Mf::Resource::getPath(path); #if !defined(_WIN32) path += ":/etc/yoinkrc"; @@ -226,6 +226,10 @@ void Main::printInfo(int argc, char* argv[]) << " Compiler: "COMPILER_STRING << std::endl << " Assets: " << assets << std::endl << "Build options: " +#ifndef HAVE_CLOCK_GETTIME + << "-" +#endif + << "clock_gettime " #ifdef NDEBUG << "-" #endif