ScummVM API documentation
EEM::DBDArchive Class Reference

.DBD + .DBX archive pair (PICS, SITES, ANI, BALLOON, BUTTON). More...

#include <resource.h>

Public Member Functions

bool open (const Common::Path &dbdName, const Common::Path &dbxName, bool bigEndian=false)
 Open both halves; returns false if either file is missing/malformed.
 
void close ()
 
uint32 size () const
 
bool loadEntry (uint num, Picture &out)
 
bool getPicture (uint num, Picture &out)
 1-based wrapper matching the engine's _GetPicture(num) -> _GetFromDB(num - 1).
 
bool loadAnimation (uint num, Animation &out)
 

Detailed Description

.DBD + .DBX archive pair (PICS, SITES, ANI, BALLOON, BUTTON).

Member Function Documentation

◆ loadEntry()

bool EEM::DBDArchive::loadEntry ( uint  num,
Picture out 
)

Load entry num (0-based), decompressing if needed. _GetFromDB @ 172b:105d.

◆ loadAnimation()

bool EEM::DBDArchive::loadAnimation ( uint  num,
Animation out 
)

Multi-frame entry. _GetAnimation @ 172b:163a: u16 frameCount, then per frame a 12-byte header + payload.


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