CS::Utility Namespace ReferenceAssorted utility functions and classes that doesn't belong anywhere else. More...
|Crystal Space Import Kit. More...|
|An implementation of a priority queue. More...|
|Helper class to |
|This is a class which provides basic weak reference-counting semantics. More...|
|Bit operations. |
|csPtr< iFile >||SmartFileOpen (iVFS *vfs, const char *path, const char *defaultFilename=0, const char **actualFilename=0)|
|"Smartly" try to locate a file given a path that could be: a plain file name, directory, name of a level in /lev/, or .zip file. |
Detailed DescriptionAssorted utility functions and classes that doesn't belong anywhere else.
|csPtr<iFile> CS::Utility::SmartFileOpen||(||iVFS *||vfs,|
|const char *||path,|
|const char *|| defaultFilename =
|const char **|| actualFilename = |
"Smartly" try to locate a file given a path that could be: a plain file name, directory, name of a level in /lev/, or .zip file.
Try to open a file given a path that could be any of a VFS path, a plain file name or directory in the real file system, name of a level in /lev/, or .zip file.
This is for example useful for tool applications which want to let the user specify paths and file locations in a variety of ways.
vfs The VFS interface to use to open the file. path The path that is attempted to be opened. defaultFilename Default filename, used when the provided path is a directory or .zip file. actualFilename Can return the actual filename opened. (Note: is either defaultFilename or a pointer into path.
- The file if opening succeeded.
Generated for Crystal Space 1.2.1 by doxygen 1.5.3