#include <resources.h>
Public Member Functions | |
Resources () | |
bool | open () |
void | addResource (const Common::Path &name, const byte *data, size_t size) |
bool | hasFile (const Common::Path &path) const override |
int | listMembers (Common::ArchiveMemberList &list) const override |
const Common::ArchiveMemberPtr | getMember (const Common::Path &path) const override |
Common::SeekableReadStream * | createReadStreamForMember (const Common::Path &path) const override |
Public Member Functions inherited from Common::Archive | |
virtual bool | isPathDirectory (const Path &path) const |
virtual int | listMatchingMembers (ArchiveMemberList &list, const Path &pattern, bool matchPathComponents=false) const |
virtual SeekableReadStream * | createReadStreamForMemberAltStream (const Path &path, AltStreamType altStreamType) const |
virtual SeekableReadStream * | createReadStreamForMemberNext (const Path &path, const Archive *starting) const |
Common::Error | dumpArchive (const Path &destPath) |
virtual char | getPathSeparator () const |
Resources manager
|
inline |
Constructor
bool Ultima::Shared::Resources::open | ( | ) |
Sets up the resources for the engine
void Ultima::Shared::Resources::addResource | ( | const Common::Path & | name, |
const byte * | data, | ||
size_t | size | ||
) |
Adds a resource created in memory to the ScummVM archive manager, so that it can be later opened like a normal file. Just as it will when eventually shifted to the data file for the engine
|
overridevirtual |
Check if a member with the given name is present in the Archive. Patterns are not allowed, as this is meant to be a quick File::exists() replacement.
Implements Common::Archive.
|
overridevirtual |
Add all members of the Archive to list. Must only append to list, and not remove elements from it.
Implements Common::Archive.
|
overridevirtual |
Returns a ArchiveMember representation of the given file.
Implements Common::Archive.
|
overridevirtual |
Create a stream bound to a member with the specified name in the archive. If no member with this name exists, 0 is returned.
Implements Common::Archive.