mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 05:40:25 +00:00
Disabled Ogre debug output to stdout/stderr
This commit is contained in:
parent
3fb99fa4b5
commit
8c4a246abd
2 changed files with 4 additions and 5 deletions
|
@ -173,6 +173,10 @@ void GraphicsPage::setupOgre()
|
||||||
"openmw", "plugins.cfg"));
|
"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
|
try
|
||||||
{
|
{
|
||||||
mOgre = new Ogre::Root(pluginCfg.toStdString());
|
mOgre = new Ogre::Root(pluginCfg.toStdString());
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QDebug>
|
|
||||||
|
|
||||||
#include "maindialog.hpp"
|
#include "maindialog.hpp"
|
||||||
|
|
||||||
|
@ -25,10 +24,6 @@ int main(int argc, char *argv[])
|
||||||
// Load the stylesheet
|
// Load the stylesheet
|
||||||
QFile file("./launcher.qss");
|
QFile file("./launcher.qss");
|
||||||
|
|
||||||
QFileInfo fi(file);
|
|
||||||
|
|
||||||
qDebug() << "Stylesheet path is: " << fi.absoluteFilePath();
|
|
||||||
|
|
||||||
file.open(QFile::ReadOnly);
|
file.open(QFile::ReadOnly);
|
||||||
QString styleSheet = QLatin1String(file.readAll());
|
QString styleSheet = QLatin1String(file.readAll());
|
||||||
app.setStyleSheet(styleSheet);
|
app.setStyleSheet(styleSheet);
|
||||||
|
|
Loading…
Reference in a new issue