mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 12:09:43 +00:00
Throw an exception if a required Ogre plugin is not found
This commit is contained in:
parent
023d7072f9
commit
144c818b41
2 changed files with 3 additions and 2 deletions
|
@ -216,7 +216,8 @@ namespace OgreInit
|
||||||
Files::loadOgrePlugin(pluginDir, "RenderSystem_GL3Plus", *mRoot);
|
Files::loadOgrePlugin(pluginDir, "RenderSystem_GL3Plus", *mRoot);
|
||||||
Files::loadOgrePlugin(pluginDir, "RenderSystem_Direct3D9", *mRoot);
|
Files::loadOgrePlugin(pluginDir, "RenderSystem_Direct3D9", *mRoot);
|
||||||
Files::loadOgrePlugin(pluginDir, "Plugin_CgProgramManager", *mRoot);
|
Files::loadOgrePlugin(pluginDir, "Plugin_CgProgramManager", *mRoot);
|
||||||
Files::loadOgrePlugin(pluginDir, "Plugin_ParticleFX", *mRoot);
|
if (!Files::loadOgrePlugin(pluginDir, "Plugin_ParticleFX", *mRoot))
|
||||||
|
throw std::runtime_error("Required Plugin_ParticleFX for Ogre not found!");
|
||||||
}
|
}
|
||||||
|
|
||||||
void OgreInit::loadParticleFactories()
|
void OgreInit::loadParticleFactories()
|
||||||
|
|
|
@ -42,4 +42,4 @@ bool loadOgrePlugin(const std::string &pluginDir, std::string pluginName, Ogre::
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue