int CSkins::Find(const char *pName) const { const char *pSkinPrefix = m_EventSkinPrefix[0] ? m_EventSkinPrefix : g_Config.m_ClSkinPrefix; if(g_Config.m_ClVanillaSkinsOnly && !IsVanillaSkin(pName)) { return -1; } else if(pSkinPrefix) { char aBuf[64]; str_format(aBuf, sizeof(aBuf), "%s_%s", pSkinPrefix, pName); // If we find something, use it, otherwise fall back to normal skins. int Result = FindImpl(aBuf); if(Result != -1) { return Result; } } return FindImpl(pName); }
// // Find the table for the given number of dct, spatial and fractional bits and return // the table implementation, or NULL in case it does not (yet) exist. struct TableImpl *FindImpl(UBYTE dctbits,UBYTE spatialbits,UBYTE dctfract,UBYTE spatialfract) { return FindImpl(dctbits,spatialbits,dctfract,spatialfract,0,spatialbits); }