2004-08-24 04:26:32 -07:00
|
|
|
#include "ps/CStr.h"
|
2006-05-17 07:48:18 -07:00
|
|
|
#include "lib/path_util.h" // for convenience
|
2005-08-12 10:06:53 -07:00
|
|
|
#include "lib/res/file/vfs.h"
|
2004-08-24 04:26:32 -07:00
|
|
|
|
|
|
|
|
namespace VFSUtil
|
|
|
|
|
{
|
|
|
|
|
|
2005-03-26 17:44:41 -08:00
|
|
|
typedef std::vector<CStr> FileList;
|
2004-08-24 04:26:32 -07:00
|
|
|
|
2005-03-26 17:44:41 -08:00
|
|
|
// Puts the list of files inside 'dirname' matching 'filter' into 'files'.
|
|
|
|
|
// 'dirname' shouldn't end with a slash.
|
|
|
|
|
// 'filter': see vfs_next_dirent
|
|
|
|
|
// 'files' is initially cleared, and undefined on failure.
|
|
|
|
|
// On failure, logs an error and returns false.
|
2005-03-29 12:50:04 -08:00
|
|
|
extern bool FindFiles(const CStr& dirname, const char* filter, FileList& files);
|
2005-03-26 17:44:41 -08:00
|
|
|
|
2006-01-24 00:16:29 -08:00
|
|
|
} // namespace VFSUtil
|