GameDef createGameDef(const Game *g) { return ((getGameID(g->game) & 0xF) << 12) | ((getPlatformID(g->platform) & 0xF) << 8) | ((getSpecialID(g->special) & 0xF) << 4) | ((getLanguageID(g->lang) & 0xF) << 0); return 0; }
uint32 TalkTable_TLK::getLanguageID(const Common::UString &file) { Common::ReadFile tlk; if (!tlk.open(file)) return kLanguageInvalid; return getLanguageID(tlk); }
uint32 getFilename(int game, int plat, int spec, int lang, const ExtractFilename *fDesc) { // GAME, PLATFORM, SPECIAL, ID, LANG return ((getGameID(game) & 0xF) << 24) | ((getPlatformID(plat) & 0xF) << 20) | ((getSpecialID(spec) & 0xF) << 16) | ((fDesc->id & 0xFFF) << 4) | ((getLanguageID(fDesc->langSpecific ? lang : UNK_LANG) & 0xF) << 0); }
uint32 getFilename(const ExtractInformation *info, const int id) { const ExtractFilename *fDesc = getFilenameDesc(id); if (!fDesc) return 0; // GAME, PLATFORM, SPECIAL, ID, LANG return ((getGameID(info->game) & 0xF) << 24) | ((getPlatformID(info->platform) & 0xF) << 20) | ((getSpecialID(info->special) & 0xF) << 16) | ((id & 0xFFF) << 4) | ((getLanguageID(fDesc->langSpecific ? info->lang : UNK_LANG) & 0xF) << 0); }
GameDef createGameDef(const ExtractInformation *eI) { return ((getGameID(eI->game) & 0xF) << 12) | ((getPlatformID(eI->platform) & 0xF) << 8) | ((getSpecialID(eI->special) & 0xF) << 4) | ((getLanguageID(eI->lang) & 0xF) << 0); }
uint32 getLanguageID(GameID game, Language language, LanguageGender gender) { return convertLanguageIDToGendered(getLanguageID(game, language), gender); }