|
|
|
@ -125,6 +125,7 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
|
|
|
|
|
, mFpsLevel(0)
|
|
|
|
|
, mDebug (false)
|
|
|
|
|
, mVerboseScripts (false)
|
|
|
|
|
, mNewGame (false)
|
|
|
|
|
, mUseSound (true)
|
|
|
|
|
, mCompileAll (false)
|
|
|
|
|
, mScriptContext (0)
|
|
|
|
@ -236,6 +237,11 @@ void OMW::Engine::setScriptsVerbosity(bool scriptsVerbosity)
|
|
|
|
|
mVerboseScripts = scriptsVerbosity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void OMW::Engine::setNewGame(bool newGame)
|
|
|
|
|
{
|
|
|
|
|
mNewGame = newGame;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Initialise and enter main loop.
|
|
|
|
|
|
|
|
|
|
void OMW::Engine::go()
|
|
|
|
@ -326,13 +332,13 @@ void OMW::Engine::go()
|
|
|
|
|
|
|
|
|
|
// Create the world
|
|
|
|
|
mEnvironment.setWorld (new MWWorld::World (*mOgre, mFileCollections, mMaster,
|
|
|
|
|
mResDir, mCfgMgr.getCachePath(), mEncoding, mFallbackMap));
|
|
|
|
|
mResDir, mCfgMgr.getCachePath(), mNewGame, mEncoding, mFallbackMap));
|
|
|
|
|
|
|
|
|
|
// Create window manager - this manages all the MW-specific GUI windows
|
|
|
|
|
MWScript::registerExtensions (mExtensions);
|
|
|
|
|
|
|
|
|
|
mEnvironment.setWindowManager (new MWGui::WindowManager(
|
|
|
|
|
mExtensions, mFpsLevel, mOgre, mCfgMgr.getLogPath().string() + std::string("/"),
|
|
|
|
|
mExtensions, mFpsLevel, mNewGame, mOgre, mCfgMgr.getLogPath().string() + std::string("/"),
|
|
|
|
|
mCfgMgr.getCachePath ().string(), mScriptConsoleMode));
|
|
|
|
|
|
|
|
|
|
// Create sound system
|
|
|
|
|