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

DetectionResults Class Reference

Contains a list of games found by the engines' detectors. More...

#include <game.h>

Collaboration diagram for DetectionResults:

List of all members.

Public Member Functions

 DetectionResults (const DetectedGames &detectedGames)
DetectedGames listRecognizedGames ()
 List all the games that were recognized by the engines.
bool foundUnknownGames () const
 Were unknown game variants found by the engines?
Common::String generateUnknownGameReport (bool translate, uint32 wordwrapAt=0) const
 Generate a report that we found an unknown game variant, together with the file names, sizes and MD5 sums.

Private Attributes

DetectedGames _detectedGames

Detailed Description

Contains a list of games found by the engines' detectors.

Each detected game can either:

  • be fully recognized (e.g. an exact match was found in the detection tables of an engine)
  • be an unknown variant (e.g. a game using files with the same name was found in the detection tables)
  • be recognized with unknown files (e.g. the game was exactly not found in the detection tables, but the detector was able to gather enough data to allow launching the game)

Practically, this means a detected game can be in both the recognized game list and in the unknown game report handled by this class.

Definition at line 192 of file game.h.


Constructor & Destructor Documentation

DetectionResults::DetectionResults ( const DetectedGames detectedGames  )  [explicit]

Definition at line 132 of file game.cpp.


Member Function Documentation

bool DetectionResults::foundUnknownGames (  )  const

Were unknown game variants found by the engines?

When unknown game variants are found, an unknown game report can be generated.

Definition at line 136 of file game.cpp.

Common::String DetectionResults::generateUnknownGameReport ( bool  translate,
uint32  wordwrapAt = 0 
) const

Generate a report that we found an unknown game variant, together with the file names, sizes and MD5 sums.

Parameters:
translate translate the report to the currently active GUI language
wordwrapAt word wrap the text part of the report after a number of characters

Definition at line 155 of file game.cpp.

DetectedGames DetectionResults::listRecognizedGames (  ) 

List all the games that were recognized by the engines.

Recognized games can be added to the configuration manager and then launched.

Definition at line 145 of file game.cpp.


Member Data Documentation

Definition at line 220 of file game.h.


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


Generated on Sat Mar 16 2019 05:04:33 for ResidualVM by doxygen 1.7.1
curved edge   curved edge