#include <GameDetector.h>
Static Public Member Functions | |
static bool | detect (std::string path, GameInfo *gameinfo) |
Definition at line 24 of file GameDetector.h.
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 |
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().