Added a new osgDB::appendPlatformSpecificLibraryFilePaths() method to FileUtils.cpp
Includes a new OSX code from Eric Wing
This commit is contained in:
@@ -96,14 +96,10 @@ inline FilePathList& getLibraryFilePathList() { return osgDB::Registry::instance
|
||||
|
||||
extern OSGDB_EXPORT std::string findLibraryFile(const std::string& filename,CaseSensitivity caseSensitivity=CASE_SENSITIVE);
|
||||
|
||||
//
|
||||
//
|
||||
// /** Deprecated. */
|
||||
// inline std::string findFileInDirectory(const std::string& fileName,const std::string& dirName,bool caseInsensitive)
|
||||
// {
|
||||
// return findFileInDirectory(fileName,dirName,caseInsensitive?CASE_SENSITIVE:CASE_INSENSITIVE);
|
||||
// }
|
||||
//
|
||||
/** convert a string containing a list of paths deliminated either with ';' (Windows) or ':' (All other platforms) into FilePath represetation.*/
|
||||
extern OSGDB_EXPORT void convertStringPathIntoFilePathList(const std::string& paths,FilePathList& filepath);
|
||||
|
||||
extern OSGDB_EXPORT void appendPlatformSpecificLibraryFilePaths(FilePathList& filepath);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -298,7 +298,7 @@ class OSGDB_EXPORT Registry : public osg::Referenced
|
||||
void setDataFilePathList(const FilePathList& filepath) { _dataFilePath = filepath; }
|
||||
|
||||
/** Set the data file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files.*/
|
||||
void setDataFilePathList(const std::string& paths) { _dataFilePath.clear(); convertStringPathIntoFilePathList(paths,_dataFilePath); }
|
||||
void setDataFilePathList(const std::string& paths);
|
||||
|
||||
/** get the data file path which is used when search for data files.*/
|
||||
FilePathList& getDataFilePathList() { return _dataFilePath; }
|
||||
@@ -314,7 +314,7 @@ class OSGDB_EXPORT Registry : public osg::Referenced
|
||||
void setLibraryFilePathList(const FilePathList& filepath) { _libraryFilePath = filepath; }
|
||||
|
||||
/** Set the library file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files.*/
|
||||
void setLibraryFilePathList(const std::string& paths) { _libraryFilePath.clear(); convertStringPathIntoFilePathList(paths,_libraryFilePath); }
|
||||
void setLibraryFilePathList(const std::string& paths);
|
||||
|
||||
/** get the library file path which is used when search for library (dso/dll's) files.*/
|
||||
FilePathList& getLibraryFilePathList() { return _libraryFilePath; }
|
||||
@@ -322,10 +322,6 @@ class OSGDB_EXPORT Registry : public osg::Referenced
|
||||
/** get the const library file path which is used when search for library (dso/dll's) files.*/
|
||||
const FilePathList& getLibraryFilePathList() const { return _libraryFilePath; }
|
||||
|
||||
/** convert a string containing a list of paths deliminated either with ';' (Windows) or ':' (All other platforms) into FilePath represetation.*/
|
||||
static void convertStringPathIntoFilePathList(const std::string& paths,FilePathList& filepath);
|
||||
|
||||
|
||||
/** For each object in the cache which has an reference count greater than 1
|
||||
* (and therefore referenced by elsewhere in the application) set the time stamp
|
||||
* for that object in the cache to specified time.
|
||||
|
||||
Reference in New Issue
Block a user