Revision: 8577
http://playerstage.svn.sourceforge.net/playerstage/?rev=8577&view=rev
Author: natepak
Date: 2010-03-10 00:06:37 +0000 (Wed, 10 Mar 2010)
Log Message:
-----------
Check for directory existance
Modified Paths:
--------------
code/gazebo/trunk/server/rendering/RTShaderSystem.cc
Modified: code/gazebo/trunk/server/rendering/RTShaderSystem.cc
===================================================================
--- code/gazebo/trunk/server/rendering/RTShaderSystem.cc 2010-03-09
23:32:32 UTC (rev 8576)
+++ code/gazebo/trunk/server/rendering/RTShaderSystem.cc 2010-03-10
00:06:37 UTC (rev 8577)
@@ -25,6 +25,7 @@
*/
#include <boost/bind.hpp>
+#include <sys/stat.h>
#include "OgreVisual.hh"
#include "World.hh"
@@ -102,12 +103,16 @@
for (; it != itEnd; ++it)
{
- if ((*it)->archive->getName().find("rtshaderlib") !=
Ogre::String::npos)
+ struct stat st;
+ if (stat((*it)->archive->getName().c_str(), &st) == 0)
{
- shaderCoreLibsPath = (*it)->archive->getName() + "/";
- shaderCachePath = shaderCoreLibsPath;
- coreLibsFound = true;
- break;
+ if ((*it)->archive->getName().find("rtshaderlib") !=
Ogre::String::npos)
+ {
+ shaderCoreLibsPath = (*it)->archive->getName() + "/";
+ shaderCachePath = shaderCoreLibsPath;
+ coreLibsFound = true;
+ break;
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit