mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 12:53:51 +00:00
config fix
This commit is contained in:
parent
0b1d6d4330
commit
26b9d0fdc3
1 changed files with 18 additions and 12 deletions
|
@ -40,7 +40,7 @@ bool OgreRenderer::configure(bool showConfig,
|
||||||
{
|
{
|
||||||
// Set up logging first
|
// Set up logging first
|
||||||
new LogManager;
|
new LogManager;
|
||||||
Log *log = LogManager::getSingleton().createLog(logPath + std::string("Ogre.log"));
|
Log *log = LogManager::getSingleton().createLog(logPath);
|
||||||
logging = _logging;
|
logging = _logging;
|
||||||
|
|
||||||
if(logging)
|
if(logging)
|
||||||
|
@ -56,7 +56,13 @@ bool OgreRenderer::configure(bool showConfig,
|
||||||
// showConfig parameter is specified. The settings are stored in
|
// showConfig parameter is specified. The settings are stored in
|
||||||
// ogre.cfg. If showConfig is false, the settings are assumed to
|
// ogre.cfg. If showConfig is false, the settings are assumed to
|
||||||
// already exist in ogre.cfg.
|
// 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,
|
bool OgreRenderer::configure(bool showConfig,
|
||||||
|
|
Loading…
Reference in a new issue