ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <archive.h>

Collaboration diagram for Myst3::Archive:

List of all members.


struct  DirectoryEntry
struct  DirectorySubEntry

Public Types

enum  ResourceType {
  kCubeFace = 0, kWaterEffectMask = 1, kLavaEffectMask = 2, kMagneticEffectMask = 3,
  kShieldEffectMask = 4, kSpotItem = 5, kFrame = 6, kRawData = 7,
  kMovie = 8, kStillMovie = 10, kText = 11, kTextMetadata = 12,
  kNumMetadata = 13, kLocalizedSpotItem = 69, kLocalizedFrame = 70, kMultitrackMovie = 72,
  kDialogMovie = 74

Public Member Functions

ResourceDescription getDescription (const Common::String &room, uint32 index, uint16 face, ResourceType type)
ResourceDescriptionArray listFilesMatching (const Common::String &room, uint32 index, uint16 face, ResourceType type)
Common::SeekableReadStreamdumpToMemory (uint32 offset, uint32 size)
uint32 copyTo (uint32 offset, uint32 size, Common::WriteStream &out)
void visit (ArchiveVisitor &visitor)
bool open (const char *fileName, const char *room)
void close ()
const Common::StringgetRoomName () const
uint32 getDirectorySize () const

Private Member Functions

void decryptHeader (Common::SeekableReadStream &inStream, Common::WriteStream &outStream)
void readDirectory ()
DirectorySubEntry readSubEntry (Common::ReadStream &stream)
DirectoryEntry readEntry (Common::ReadStream &stream)
const DirectoryEntrygetEntry (const Common::String &room, uint32 index) const

Private Attributes

Common::String _roomName
Common::File _file
uint32 _directorySize
Common::Array< DirectoryEntry_directory

Detailed Description

Definition at line 38 of file archive.h.

Member Enumeration Documentation


Definition at line 40 of file archive.h.

Member Function Documentation

void Myst3::Archive::close (  ) 

Definition at line 206 of file archive.cpp.

uint32 Myst3::Archive::copyTo ( uint32  offset,
uint32  size,
Common::WriteStream out 

Definition at line 139 of file archive.cpp.

void Myst3::Archive::decryptHeader ( Common::SeekableReadStream inStream,
Common::WriteStream outStream 
) [private]

Definition at line 31 of file archive.cpp.

Common::SeekableReadStream * Myst3::Archive::dumpToMemory ( uint32  offset,
uint32  size 

Definition at line 134 of file archive.cpp.

ResourceDescription Myst3::Archive::getDescription ( const Common::String room,
uint32  index,
uint16  face,
ResourceType  type 

Definition at line 156 of file archive.cpp.

uint32 Myst3::Archive::getDirectorySize (  )  const [inline]

Definition at line 91 of file archive.h.

const Archive::DirectoryEntry * Myst3::Archive::getEntry ( const Common::String room,
uint32  index 
) const [private]

Definition at line 145 of file archive.cpp.

const Common::String& Myst3::Archive::getRoomName (  )  const [inline]

Definition at line 90 of file archive.h.

ResourceDescriptionArray Myst3::Archive::listFilesMatching ( const Common::String room,
uint32  index,
uint16  face,
ResourceType  type 

Definition at line 173 of file archive.cpp.

bool Myst3::Archive::open ( const char *  fileName,
const char *  room 

Definition at line 191 of file archive.cpp.

void Myst3::Archive::readDirectory (  )  [private]

Definition at line 110 of file archive.cpp.

Archive::DirectoryEntry Myst3::Archive::readEntry ( Common::ReadStream stream  )  [private]

Definition at line 91 of file archive.cpp.

Archive::DirectorySubEntry Myst3::Archive::readSubEntry ( Common::ReadStream stream  )  [private]

Definition at line 74 of file archive.cpp.

void Myst3::Archive::visit ( ArchiveVisitor visitor  ) 

Definition at line 122 of file archive.cpp.

Member Data Documentation

Definition at line 97 of file archive.h.

Definition at line 96 of file archive.h.

Definition at line 95 of file archive.h.

Definition at line 94 of file archive.h.

The documentation for this class was generated from the following files:

Generated on Sat Jun 27 2020 05:03:00 for ResidualVM by doxygen 1.7.1
curved edge   curved edge