15
FSEntry (FSType type_, const std::string &location_)
16
: type (type_), location (location_)
24
void clear() { entries.clear(); }
26
void append_dir (const string &path);
27
void prepend_dir (const string &path);
29
void prepend_zip (const string &filename);
31
FileHandle *find_file (const FileName &);
33
bool find_file(const string &filename, string &dest) const;
35
std::list <string> find_files (const string &folder,
36
const string &filename) const;
40
std::vector<FSEntry> entries;
44
class FileHandle_Dir : public FileHandle {
47
bool m_exists; // File exists
50
FileHandle_Dir (const std::string &name);
52
// FileHandle interface.
54
void read (ByteVec &buffer);
57
class FileHandle_Zip : public FileHandle {
61
// FileHandle interface.
63
void read (ByteVec &buffer);