GameDetector Class Reference

#include <GameDetector.h>

List of all members.

Static Public Member Functions

static bool detect (std::string path, GameInfo *gameinfo)

Detailed Description

Definition at line 24 of file GameDetector.h.

Member Function Documentation

bool GameDetector::detect ( std::string  path,
GameInfo gameinfo 
) [static]

try to detect type, version and language of game

path Path where game is located
gameinfo GameInfo struct to store data in
true if detected succesfully

Definition at line 29 of file GameDetector.cpp.

References FileSystem::AddVirtualPath(), GameInfo::GAME_REGRET, GameInfo::GAME_REMORSE, GameInfo::GAME_U8, GameInfo::GAME_UNKNOWN, GameInfo::GAMELANG_ENGLISH, GameInfo::GAMELANG_FRENCH, GameInfo::GAMELANG_SPANISH, GameInfo::GAMELANG_UNKNOWN, FileSystem::get_instance(), RawArchive::get_object_nodel(), RawArchive::get_size(), GameInfo::getPrintableMD5(), GameInfo::language, GameInfo::md5, Pentagram::md5_file(), Pentagram::md5table, perr, FileSystem::ReadFile(), GameInfo::type, and GameInfo::version.

Referenced by CoreApp::getGameInfo().

The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:16 2007 for pentagram by  doxygen 1.4.7