ScummVM API documentation
Common::PEResources Class Reference

#include <winexe_pe.h>

Inheritance diagram for Common::PEResources:
Common::WinResources

Public Member Functions

void clear ()
 
bool loadFromEXE (SeekableReadStream *stream, DisposeAfterUse::Flag disposeFileHandle=DisposeAfterUse::YES)
 
const Array< WinResourceIDgetTypeList () const
 
const Array< WinResourceIDgetIDList (const WinResourceID &type) const
 
const Array< WinResourceIDgetLangList (const WinResourceID &type, const WinResourceID &id) const
 
SeekableReadStreamgetResource (const WinResourceID &type, const WinResourceID &id)
 
SeekableReadStreamgetResource (const WinResourceID &type, const WinResourceID &id, const WinResourceID &lang)
 
String loadString (uint32 stringID)
 
- Public Member Functions inherited from Common::WinResources
virtual bool loadFromEXE (const Path &fileName)
 
virtual bool loadFromCompressedEXE (const Path &fileName)
 
VersionInfogetVersionResource (const WinResourceID &id)
 

Protected Member Functions

VersionInfoparseVersionInfo (SeekableReadStream *stream)
 

Additional Inherited Members

- Public Types inherited from Common::WinResources
typedef Common::HashMap< Common::String, Common::U32String, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualToVersionHash
 
- Static Public Member Functions inherited from Common::WinResources
static WinResourcescreateFromEXE (const Path &fileName)
 
static WinResourcescreateFromEXE (SeekableReadStream *stream)
 

Detailed Description

A class able to load resources from a Windows Portable Executable, such as cursors, bitmaps, and sounds.

Member Function Documentation

◆ clear()

void Common::PEResources::clear ( )
virtual

Clear all information.

Implements Common::WinResources.

◆ loadFromEXE()

bool Common::PEResources::loadFromEXE ( SeekableReadStream stream,
DisposeAfterUse::Flag  disposeFileHandle = DisposeAfterUse::YES 
)
virtual

Load from a stream.

Implements Common::WinResources.

◆ getTypeList()

const Array<WinResourceID> Common::PEResources::getTypeList ( ) const

Return a list of resource types.

◆ getIDList()

const Array<WinResourceID> Common::PEResources::getIDList ( const WinResourceID type) const
virtual

Return a list of IDs for a given type.

Implements Common::WinResources.

◆ getLangList()

const Array<WinResourceID> Common::PEResources::getLangList ( const WinResourceID type,
const WinResourceID id 
) const
virtual

Return a list of languages for a given type and ID.

Reimplemented from Common::WinResources.

◆ getResource() [1/2]

SeekableReadStream* Common::PEResources::getResource ( const WinResourceID type,
const WinResourceID id 
)
virtual

Return a stream to the specified resource, taking the first language found (or 0 if non-existent).

Implements Common::WinResources.

◆ getResource() [2/2]

SeekableReadStream* Common::PEResources::getResource ( const WinResourceID type,
const WinResourceID id,
const WinResourceID lang 
)
virtual

Return a stream to the specified resource (or 0 if non-existent).

Reimplemented from Common::WinResources.

◆ loadString()

String Common::PEResources::loadString ( uint32  stringID)
virtual

Get a string from a string resource.

Implements Common::WinResources.


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