From 8c4a246abdaf9c67ef667825891da5ddde766039 Mon Sep 17 00:00:00 2001 From: Pieter van der Kloet Date: Sun, 31 Jul 2011 18:13:24 +0200 Subject: [PATCH] Disabled Ogre debug output to stdout/stderr --- apps/launcher/graphicspage.cpp | 4 ++++ apps/launcher/main.cpp | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/launcher/graphicspage.cpp b/apps/launcher/graphicspage.cpp index de3b0211e..147dbd15e 100644 --- a/apps/launcher/graphicspage.cpp +++ b/apps/launcher/graphicspage.cpp @@ -172,6 +172,10 @@ void GraphicsPage::setupOgre() pluginCfg = QString::fromStdString(Files::getPath(Files::Path_ConfigUser, "openmw", "plugins.cfg")); } + + // Create a log manager so we can surpress debug text to stdout/stderr + Ogre::LogManager* logMgr = OGRE_NEW Ogre::LogManager; + logMgr->createLog("Ogre.log", true, false, false); try { diff --git a/apps/launcher/main.cpp b/apps/launcher/main.cpp index c89a14f5f..4e438a4db 100644 --- a/apps/launcher/main.cpp +++ b/apps/launcher/main.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include "maindialog.hpp" @@ -24,10 +23,6 @@ int main(int argc, char *argv[]) // Load the stylesheet QFile file("./launcher.qss"); - - QFileInfo fi(file); - - qDebug() << "Stylesheet path is: " << fi.absoluteFilePath(); file.open(QFile::ReadOnly); QString styleSheet = QLatin1String(file.readAll());