mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 21:39:40 +00:00
always add debug suffix in plugin loader
also removed cout spam
This commit is contained in:
parent
23e44a86c6
commit
b0b2064232
1 changed files with 2 additions and 4 deletions
|
@ -6,10 +6,11 @@
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
bool loadOgrePlugin(std::string pluginDir, std::string pluginName, Ogre::Root &ogreRoot) {
|
bool loadOgrePlugin(std::string pluginDir, std::string pluginName, Ogre::Root &ogreRoot) {
|
||||||
|
pluginName = pluginName + OGRE_PLUGIN_DEBUG_SUFFIX;
|
||||||
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
||||||
std::ostringstream verStream;
|
std::ostringstream verStream;
|
||||||
verStream << "." << OGRE_VERSION_MAJOR << "." << OGRE_VERSION_MINOR << "." << OGRE_VERSION_PATCH;
|
verStream << "." << OGRE_VERSION_MAJOR << "." << OGRE_VERSION_MINOR << "." << OGRE_VERSION_PATCH;
|
||||||
pluginName = pluginName + OGRE_PLUGIN_DEBUG_SUFFIX + verStream.str();
|
pluginName = pluginName + verStream.str();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string pluginExt;
|
std::string pluginExt;
|
||||||
|
@ -24,9 +25,6 @@ bool loadOgrePlugin(std::string pluginDir, std::string pluginName, Ogre::Root &o
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string pluginPath = pluginDir + "/" + pluginName + pluginExt;
|
std::string pluginPath = pluginDir + "/" + pluginName + pluginExt;
|
||||||
|
|
||||||
std::cout << "loading plugin: " << pluginPath << std::endl;
|
|
||||||
|
|
||||||
if (boost::filesystem::exists(pluginPath)) {
|
if (boost::filesystem::exists(pluginPath)) {
|
||||||
ogreRoot.loadPlugin(pluginPath);
|
ogreRoot.loadPlugin(pluginPath);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue