25 #ifndef AURORA_NDSROM_H 26 #define AURORA_NDSROM_H 39 class SeekableReadStream;
106 #endif // AURORA_NDSROM_H const Common::UString & getTitle() const
Return the game title string stored in the NDS header.
A class holding an UTF-8 string.
ResourceList _resources
External list of resource names and types.
const Common::UString & getMaker() const
Return the maker code string stored in the NDS header.
Handling various archive files.
bool hasResource(Common::UString name) const
Does the Nintendo DS ROM contain a certain resource?
A simple scoped smart pointer template.
void readFAT(Common::SeekableReadStream &nds, uint32 offset)
Internal resource information.
std::list< Resource > ResourceList
uint32 offset
The offset of the resource within the NDS.
Low-level type definitions to handle fixed width types portably.
const Common::UString & getCode() const
Return the game code string stored in the NDS header.
Common::SeekableReadStream * getResource(uint32 index, bool tryNoCopy=false) const
Return a stream of the resource's contents.
void readNames(Common::SeekableReadStream &nds, uint32 offset, uint32 length)
Basic type definitions to handle files used in BioWare's Aurora engine.
IResourceList _iResources
Internal list of resource offsets and sizes.
Common::ScopedPtr< Common::SeekableReadStream > _nds
std::vector< IResource > IResourceList
NDSFile(const Common::UString &fileName)
Over this file in the filesystem and read a NDS file out of it.
const IResource & getIResource(uint32 index) const
static bool isNDS(Common::SeekableReadStream &stream, Common::UString &title, Common::UString &code, Common::UString &maker)
Check if a stream is a valid Nintendo DS ROM and read its title, code and maker strings.
A class encapsulating Nintendo DS ROM access.
An abstract file archive.
const ResourceList & getResources() const
Return the list of resources.
uint32 getResourceSize(uint32 index) const
Return the size of a resource.
Interface for a seekable & readable data stream.
uint32 size
The resource's size.
void load(Common::SeekableReadStream &nds)