]> git.mxchange.org Git - simgear.git/commitdiff
Use osgDB::FileUtils instead of plib file utils.
authorfrohlich <frohlich>
Sat, 6 Jun 2009 09:16:04 +0000 (09:16 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 11 Jun 2009 13:55:10 +0000 (15:55 +0200)
Modified Files:
  simgear/scene/material/mat.cxx

simgear/scene/material/mat.cxx

index b306391bcd40262772ea17893f343fd533690a99..4eda1dde168c0745c6962fdd6331a6a6a287bc0e 100644 (file)
 #include <string.h>
 #include <map>
 
-#include <plib/ul.h>
-
 #include <osg/CullFace>
 #include <osg/Material>
 #include <osg/ShadeModel>
 #include <osg/TexEnv>
 #include <osg/Texture2D>
 #include <osgDB/ReadFile>
+#include <osgDB/FileUtils>
 
 #include <simgear/debug/logstream.hxx>
 #include <simgear/misc/sg_path.hxx>
@@ -104,13 +103,13 @@ SGMaterial::read_properties( const string &fg_root, const SGPropertyNode *props)
     SGPath tpath( fg_root );
     tpath.append("Textures.high");
     tpath.append(tname);
-    if ( !ulFileExists(tpath.c_str()) ) {
+    if ( !osgDB::fileExists(tpath.str()) ) {
       tpath = SGPath( fg_root );
       tpath.append("Textures");
       tpath.append(tname);
     }
 
-    if ( ulFileExists(tpath.c_str()) ) {
+    if ( osgDB::fileExists(tpath.str()) ) {
       _internal_state st( NULL, tpath.str(), false );
       _status.push_back( st );
     }