2004-08-24 13:26:32 +02:00
|
|
|
#include "ps/CStr.h"
|
|
|
|
|
|
|
|
namespace VFSUtil
|
|
|
|
{
|
|
|
|
typedef std::vector<CStr> FileList;
|
|
|
|
|
|
|
|
// Puts the list of files inside 'dirname' matching 'filter' into 'files'.
|
|
|
|
// 'dirname' shouldn't end with a slash.
|
|
|
|
// 'filter' is as in vfs_next_dirent:
|
|
|
|
// - 0: any file;
|
|
|
|
// - ".": any file without extension (filename doesn't contain '.');
|
|
|
|
// - ".ext": any file with extension ".ext" (which must not contain '.');
|
|
|
|
// - "/": any subdirectory
|
|
|
|
// 'files' is initially cleared, and undefined on failure.
|
|
|
|
// On failure, logs an error and returns false.
|
|
|
|
bool FindFiles(CStr dirname, const char* filter, FileList& files);
|
|
|
|
|
2004-11-07 22:30:47 +01:00
|
|
|
};
|