From a0d687bb24a8a93d3946979c52857b9718455ef7 Mon Sep 17 00:00:00 2001 From: frohlich Date: Sat, 6 Jun 2009 09:16:04 +0000 Subject: [PATCH] Use osgDB::FileUtils instead of plib file utils. Modified Files: simgear/scene/material/mat.cxx --- simgear/scene/material/mat.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 ); } -- 2.39.5