From: frohlich Date: Sat, 6 Jun 2009 09:16:04 +0000 (+0000) Subject: Use osgDB::FileUtils instead of plib file utils. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a0d687bb24a8a93d3946979c52857b9718455ef7;p=simgear.git Use osgDB::FileUtils instead of plib file utils. Modified Files: simgear/scene/material/mat.cxx --- diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index b306391b..4eda1dde 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -30,14 +30,13 @@ #include #include -#include - #include #include #include #include #include #include +#include #include #include @@ -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 ); }