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

Grim::GrimMetaEngine Class Reference

Inheritance diagram for Grim::GrimMetaEngine:
Collaboration diagram for Grim::GrimMetaEngine:

List of all members.

Public Member Functions

 GrimMetaEngine ()
PlainGameDescriptor findGame (const char *gameid) const override
 Query the engine for a PlainGameDescriptor for the specified gameid, if any.
virtual const char * getName () const override
 Returns the name of the plugin.
virtual const char * getOriginalCopyright () const override
 Returns some copyright information about the original engine.
virtual Common::Error createInstance (OSystem *syst, Engine **engine) const override
 Tries to instantiate an engine instance based on the settings of the currently active ConfMan target.
virtual bool createInstance (OSystem *syst, Engine **engine, const ADGameDescription *desc) const override
virtual bool hasFeature (MetaEngineFeature f) const override
 Determine whether the engine supports the specified MetaEngine feature.
virtual SaveStateList listSaves (const char *target) const override
 Return a list of all save states associated with the given target.

Detailed Description

Definition at line 593 of file detection.cpp.


Constructor & Destructor Documentation

Grim::GrimMetaEngine::GrimMetaEngine (  )  [inline]

Definition at line 595 of file detection.cpp.


Member Function Documentation

virtual Common::Error Grim::GrimMetaEngine::createInstance ( OSystem syst,
Engine **  engine 
) const [inline, override, virtual]

Tries to instantiate an engine instance based on the settings of the currently active ConfMan target.

That is, the MetaEngine should query the ConfMan singleton for the target, gameid, path etc. data.

Parameters:
syst Pointer to the global OSystem object
engine Pointer to a pointer which the MetaEngine sets to the newly create Engine, or 0 in case of an error
Returns:
a Common::Error describing the error which occurred, or kNoError

Reimplemented from AdvancedMetaEngine.

Definition at line 611 of file detection.cpp.

bool Grim::GrimMetaEngine::createInstance ( OSystem syst,
Engine **  engine,
const ADGameDescription desc 
) const [override, virtual]

Implements AdvancedMetaEngine.

Definition at line 623 of file detection.cpp.

PlainGameDescriptor Grim::GrimMetaEngine::findGame ( const char *  gameId  )  const [inline, override, virtual]

Query the engine for a PlainGameDescriptor for the specified gameid, if any.

Reimplemented from AdvancedMetaEngine.

Definition at line 599 of file detection.cpp.

virtual const char* Grim::GrimMetaEngine::getName (  )  const [inline, override, virtual]

Returns the name of the plugin.

Implements PluginObject.

Definition at line 603 of file detection.cpp.

virtual const char* Grim::GrimMetaEngine::getOriginalCopyright (  )  const [inline, override, virtual]

Returns some copyright information about the original engine.

Implements MetaEngine.

Definition at line 607 of file detection.cpp.

bool Grim::GrimMetaEngine::hasFeature ( MetaEngineFeature  f  )  const [override, virtual]

Determine whether the engine supports the specified MetaEngine feature.

Used by e.g. the launcher to determine whether to enable the "Load" button.

Reimplemented from MetaEngine.

Definition at line 637 of file detection.cpp.

SaveStateList Grim::GrimMetaEngine::listSaves ( const char *  target  )  const [override, virtual]

Return a list of all save states associated with the given target.

The returned list is guaranteed to be sorted by slot numbers. That means smaller slot numbers are always stored before bigger slot numbers.

The caller has to ensure that this (Meta)Engine is responsible for the specified target (by using findGame on it respectively on the associated gameid from the relevant ConfMan entry, if present).

The default implementation returns an empty list.

Note:
MetaEngines must indicate that this function has been implemented via the kSupportsListSaves feature flag.
Parameters:
target name of a config manager target
Returns:
a list of save state descriptors

Reimplemented from MetaEngine.

Definition at line 643 of file detection.cpp.


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


Generated on Sat Nov 16 2019 05:02:59 for ResidualVM by doxygen 1.7.1
curved edge   curved edge