|
|
@ -20,7 +20,8 @@
|
|
|
|
#include "model/world/data.hpp"
|
|
|
|
#include "model/world/data.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
CS::Editor::Editor (OgreInit::OgreInit& ogreInit)
|
|
|
|
CS::Editor::Editor (OgreInit::OgreInit& ogreInit)
|
|
|
|
: mUserSettings (mCfgMgr), mDocumentManager (mCfgMgr), mViewManager (mDocumentManager),
|
|
|
|
: mUserSettings (mCfgMgr), mOverlaySystem (0), mDocumentManager (mCfgMgr),
|
|
|
|
|
|
|
|
mViewManager (mDocumentManager),
|
|
|
|
mIpcServerName ("org.openmw.OpenCS"), mServer(NULL), mClientSocket(NULL)
|
|
|
|
mIpcServerName ("org.openmw.OpenCS"), mServer(NULL), mClientSocket(NULL)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::pair<Files::PathContainer, std::vector<std::string> > config = readConfig();
|
|
|
|
std::pair<Files::PathContainer, std::vector<std::string> > config = readConfig();
|
|
|
@ -32,6 +33,8 @@ CS::Editor::Editor (OgreInit::OgreInit& ogreInit)
|
|
|
|
|
|
|
|
|
|
|
|
ogreInit.init ((mCfgMgr.getUserConfigPath() / "opencsOgre.log").string());
|
|
|
|
ogreInit.init ((mCfgMgr.getUserConfigPath() / "opencsOgre.log").string());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mOverlaySystem.reset (new CSVRender::OverlaySystem);
|
|
|
|
|
|
|
|
|
|
|
|
Bsa::registerResources (Files::Collections (config.first, !mFsStrict), config.second, true,
|
|
|
|
Bsa::registerResources (Files::Collections (config.first, !mFsStrict), config.second, true,
|
|
|
|
mFsStrict);
|
|
|
|
mFsStrict);
|
|
|
|
|
|
|
|
|
|
|
@ -66,9 +69,7 @@ CS::Editor::Editor (OgreInit::OgreInit& ogreInit)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CS::Editor::~Editor ()
|
|
|
|
CS::Editor::~Editor ()
|
|
|
|
{
|
|
|
|
{}
|
|
|
|
CSVRender::OverlaySystem::instance().destroy(); // destruct before Ogre::Root
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CS::Editor::setupDataFiles (const Files::PathContainer& dataDirs)
|
|
|
|
void CS::Editor::setupDataFiles (const Files::PathContainer& dataDirs)
|
|
|
|
{
|
|
|
|
{
|
|
|
|