1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 10:23:51 +00:00

config fix

This commit is contained in:
Marc Zinnschlag 2011-09-27 09:44:42 +02:00
parent 0b1d6d4330
commit 26b9d0fdc3

View file

@ -40,7 +40,7 @@ bool OgreRenderer::configure(bool showConfig,
{
// Set up logging first
new LogManager;
Log *log = LogManager::getSingleton().createLog(logPath + std::string("Ogre.log"));
Log *log = LogManager::getSingleton().createLog(logPath);
logging = _logging;
if(logging)
@ -56,7 +56,13 @@ bool OgreRenderer::configure(bool showConfig,
// showConfig parameter is specified. The settings are stored in
// ogre.cfg. If showConfig is false, the settings are assumed to
// already exist in ogre.cfg.
return (showConfig) ? !mRoot->showConfigDialog() : !mRoot->restoreConfig();
int result;
if(showConfig)
result = mRoot->showConfigDialog();
else
result = mRoot->restoreConfig();
return !result;
}
bool OgreRenderer::configure(bool showConfig,