|
@@ -248,40 +248,36 @@
|
|
|
}
|
|
|
|
|
|
/* static */ GameInfo *Game::FindInfo(const char *name, int version, bool force_exact_match)
|
|
|
{
|
|
|
return Game::scanner_info->FindInfo(name, version, force_exact_match);
|
|
|
}
|
|
|
|
|
|
/* static */ GameLibrary *Game::FindLibrary(const char *library, int version)
|
|
|
{
|
|
|
return Game::scanner_library->FindLibrary(library, version);
|
|
|
}
|
|
|
|
|
|
#if defined(ENABLE_NETWORK)
|
|
|
|
|
|
/**
|
|
|
* Check whether we have an Game (library) with the exact characteristics as ci.
|
|
|
* @param ci the characteristics to search on (shortname and md5sum)
|
|
|
* @param md5sum whether to check the MD5 checksum
|
|
|
* @return true iff we have an Game (library) matching.
|
|
|
*/
|
|
|
/* static */ bool Game::HasGame(const ContentInfo *ci, bool md5sum)
|
|
|
{
|
|
|
return Game::scanner_info->HasScript(ci, md5sum);
|
|
|
}
|
|
|
|
|
|
/* static */ bool Game::HasGameLibrary(const ContentInfo *ci, bool md5sum)
|
|
|
{
|
|
|
return Game::scanner_library->HasScript(ci, md5sum);
|
|
|
}
|
|
|
|
|
|
#endif /* defined(ENABLE_NETWORK) */
|
|
|
|
|
|
/* static */ GameScannerInfo *Game::GetScannerInfo()
|
|
|
{
|
|
|
return Game::scanner_info;
|
|
|
}
|
|
|
/* static */ GameScannerLibrary *Game::GetScannerLibrary()
|
|
|
{
|
|
|
return Game::scanner_library;
|
|
|
}
|