ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

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

#include <winexe_ne.h>

Collaboration diagram for Common::NEResources:

List of all members.

Classes

struct  Resource
 A resource. More...

Public Member Functions

 NEResources ()
 ~NEResources ()
void clear ()
 Clear all information.
bool loadFromEXE (const String &fileName)
 Load from an EXE file.
bool loadFromCompressedEXE (const String &fileName)
 Load from a Windows compressed EXE file.
bool loadFromEXE (SeekableReadStream *stream)
 Load from a stream.
const Array< WinResourceIDgetIDList (const WinResourceID &type) const
 Return a list of resources for a given type.
SeekableReadStreamgetResource (const WinResourceID &type, const WinResourceID &id)
 Return a stream to the specified resource (or 0 if non-existent).

Private Member Functions

uint32 getResourceTableOffset ()
 Read the offset to the resource table.
bool readResourceTable (uint32 offset)
 Read the resource table.
const ResourcefindResource (const WinResourceID &type, const WinResourceID &id) const
 Find a specific resource.

Static Private Member Functions

static String getResourceString (SeekableReadStream &exe, uint32 offset)
 Read a resource string.

Private Attributes

SeekableReadStream_exe
 Current file.
List< Resource_resources
 All resources.

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.

Definition at line 66 of file winexe_ne.h.


Constructor & Destructor Documentation

Common::NEResources::NEResources (  ) 

Definition at line 32 of file winexe_ne.cpp.

Common::NEResources::~NEResources (  ) 

Definition at line 36 of file winexe_ne.cpp.


Member Function Documentation

void Common::NEResources::clear (  ) 

Clear all information.

Definition at line 40 of file winexe_ne.cpp.

const NEResources::Resource * Common::NEResources::findResource ( const WinResourceID type,
const WinResourceID id 
) const [private]

Find a specific resource.

Definition at line 268 of file winexe_ne.cpp.

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

Return a list of resources for a given type.

Definition at line 286 of file winexe_ne.cpp.

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

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

Definition at line 276 of file winexe_ne.cpp.

String Common::NEResources::getResourceString ( SeekableReadStream exe,
uint32  offset 
) [static, private]

Read a resource string.

Definition at line 250 of file winexe_ne.cpp.

uint32 Common::NEResources::getResourceTableOffset (  )  [private]

Read the offset to the resource table.

Definition at line 149 of file winexe_ne.cpp.

bool Common::NEResources::loadFromCompressedEXE ( const String fileName  ) 

Load from a Windows compressed EXE file.

Definition at line 83 of file winexe_ne.cpp.

bool Common::NEResources::loadFromEXE ( const String fileName  ) 

Load from an EXE file.

Definition at line 49 of file winexe_ne.cpp.

bool Common::NEResources::loadFromEXE ( SeekableReadStream stream  ) 

Load from a stream.

Definition at line 63 of file winexe_ne.cpp.

bool Common::NEResources::readResourceTable ( uint32  offset  )  [private]

Read the resource table.

Definition at line 195 of file winexe_ne.cpp.


Member Data Documentation

Current file.

Definition at line 104 of file winexe_ne.h.

All resources.

Definition at line 107 of file winexe_ne.h.


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


Generated on Sat Mar 23 2019 05:07:19 for ResidualVM by doxygen 1.7.1
curved edge   curved edge