ScummVM API documentation
Common::NEResources Class Reference

#include <winexe_ne.h>

Inheritance diagram for Common::NEResources:
Common::WinResources

Public Member Functions

void clear ()
 
bool loadFromEXE (SeekableReadStream *stream, DisposeAfterUse::Flag disposeFileHandle=DisposeAfterUse::YES)
 
const Array< WinResourceIDgetIDList (const WinResourceID &type) const
 
SeekableReadStreamgetResource (const WinResourceID &type, const WinResourceID &id)
 
String loadString (uint32 stringID)
 
- Public Member Functions inherited from Common::WinResources
virtual bool loadFromEXE (const Path &fileName)
 
virtual bool loadFromCompressedEXE (const Path &fileName)
 
virtual const Array< WinResourceIDgetLangList (const WinResourceID &type, const WinResourceID &id) const
 
virtual SeekableReadStreamgetResource (const WinResourceID &type, const WinResourceID &id, const WinResourceID &lang)
 
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 New Executable, such as cursors, bitmaps, and sounds.

See http://en.wikipedia.org/wiki/New_Executable for more info.

Member Function Documentation

◆ clear()

void Common::NEResources::clear ( )
virtual

Clear all information.

Implements Common::WinResources.

◆ loadFromEXE()

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

Load from a stream.

Implements Common::WinResources.

◆ getIDList()

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

Return a list of resources for a given type.

Implements Common::WinResources.

◆ getResource()

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

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

Implements Common::WinResources.

◆ loadString()

String Common::NEResources::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: