22#ifndef SHERLOCK_RESOURCES_H
23#define SHERLOCK_RESOURCES_H
25#include "common/array.h"
26#include "common/file.h"
27#include "common/hashmap.h"
28#include "common/hash-str.h"
29#include "common/rect.h"
30#include "common/str.h"
31#include "common/str-array.h"
32#include "common/stream.h"
33#include "graphics/surface.h"
41 uint32 _offset, _size;
46 _index(index), _offset(offset), _size(size) {}
Definition: resources.h:53
void load(const Common::Path &name)
bool isCached(const Common::Path &filename) const
Common::SeekableReadStream * get(const Common::Path &filename) const
void load(const Common::Path &name, Common::SeekableReadStream &stream)
Definition: resources.h:83
static void decompressLZ(Common::SeekableReadStream &source, byte *outBuffer, int32 outSize, int32 inSize)
bool exists(const Common::Path &filename) const
Common::SeekableReadStream * load(const Common::Path &filename, const Common::Path &libraryFile, bool suppressErrors=false)
Common::SeekableReadStream * decompress(Common::SeekableReadStream &source)
void decompressIfNecessary(Common::SeekableReadStream *&stream)
int resourceIndex() const
Common::SeekableReadStream * load(const Common::Path &filename)
void getResourceNames(const Common::Path &libraryFile, Common::StringArray &names)
static Common::SeekableReadStream * decompressLZ(Common::SeekableReadStream &source, uint32 outSize)
void addToCache(const Common::Path &filename, Common::SeekableReadStream &stream)
void decompress(Common::SeekableReadStream &source, byte *buffer, uint32 outSize)
void addToCache(const Common::Path &filename)
void addToCache(const Common::Path &filename, const Common::Path &libFilename)
Common::SeekableReadStream * decompress(Common::SeekableReadStream &source, uint32 outSize)
Definition: sherlock.h:206
Definition: resources.h:40