#include <resources.h>
|
enum | ListMode { kListFilesOnly = 1,
kListDirectoriesOnly = 2,
kListAll = 3
} |
|
◆ Resources()
Ultima::Shared::Resources::Resources |
( |
| ) |
|
|
inline |
◆ open()
bool Ultima::Shared::Resources::open |
( |
| ) |
|
Sets up the resources for the engine
- Returns
- False if setup failed
◆ addResource()
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
◆ hasFile()
bool Ultima::Shared::Resources::hasFile |
( |
const Common::Path & |
path | ) |
const |
|
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.
◆ listMembers()
Add all members of the Archive to list. Must only append to list, and not remove elements from it.
- Returns
- the number of names added to list
Implements Common::Archive.
◆ getMember()
Returns a ArchiveMember representation of the given file.
Implements Common::Archive.
◆ createReadStreamForMember()
Create a stream bound to a member with the specified name in the archive. If no member with this name exists, 0 is returned.
- Returns
- the newly created input stream
Implements Common::Archive.
The documentation for this class was generated from the following file: