2004-08-24 13:26:32 +02:00
|
|
|
#include "ps/CStr.h"
|
2005-08-12 19:06:53 +02:00
|
|
|
#include "lib/res/file/vfs.h"
|
2004-08-24 13:26:32 +02:00
|
|
|
|
|
|
|
namespace VFSUtil
|
|
|
|
{
|
|
|
|
|
2005-03-27 03:44:41 +02:00
|
|
|
typedef std::vector<CStr> FileList;
|
2004-08-24 13:26:32 +02:00
|
|
|
|
2005-03-27 03:44:41 +02: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 22:50:04 +02:00
|
|
|
extern bool FindFiles(const CStr& dirname, const char* filter, FileList& files);
|
2005-03-27 03:44:41 +02:00
|
|
|
|
2006-01-24 09:16:29 +01:00
|
|
|
} // namespace VFSUtil
|