43 ResMan.indexArchive(file, priority, password, changeID);
45 e.
add(
"Failed to index mandatory archive \"%s\"", file.
c_str());
58 std::vector<byte> password;
64 std::vector<byte> password;
75 if (!
ResMan.hasArchive(file))
79 ResMan.indexArchive(file, priority, password, changeID);
81 e.
add(
"Found optional archive \"%s\", but failed to index it", file.
c_str());
101 std::vector<byte> password;
107 std::vector<byte> password;
119 ResMan.indexResourceDir(dir, glob, depth, priority, changeID);
121 e.
add(
"Failed to index mandatory directory \"%s\"", dir.
c_str());
139 if (!
ResMan.hasResourceDir(dir))
143 ResMan.indexResourceDir(dir, glob, depth, priority, changeID);
145 e.
add(
"Found optional directory \"%s\", but failed to index it", dir.
c_str());
169 for (ChangeList::reverse_iterator c = changes.rbegin(); c != changes.rend(); ++c)
#define ResMan
Shortcut for accessing the sound manager.
Generic Aurora engines resource utility functions.
void add(const char *s,...) GCC_PRINTF(2
A class holding an UTF-8 string.
bool indexOptionalArchive(const Common::UString &file, uint32 priority, const std::vector< byte > &password, Common::ChangeID *changeID)
bool indexOptionalDirectory(const Common::UString &dir, const char *glob, int depth, uint32 priority, Common::ChangeID *changeID)
Add a directory to the resource manager, if it exists.
Exception that provides a stack of explanations.
std::list< Common::ChangeID > ChangeList
void deindexResources(Common::ChangeID &changeID)
Remove previously added resources from the ResourceManager.
Basic exceptions to throw.
void indexMandatoryArchive(const Common::UString &file, uint32 priority, const std::vector< byte > &password, Common::ChangeID *changeID)
const char * c_str() const
Return the (utf8 encoded) string data.
The global events manager.
#define EventMan
Shortcut for accessing the events manager.
void indexMandatoryDirectory(const Common::UString &dir, const char *glob, int depth, uint32 priority, Common::ChangeID *changeID)
Add a directory to the resource manager, erroring out if it does not exist.
A class representing an undoable change.
The global resource manager for Aurora resources.