void MRUList::load() { clear(); VDRegistryAppKey key(mpKeyName); if (!key.isReady()) return; VDStringA s; if (!key.getString("MRUList", s)) return; int nItems = std::min<int>(mMaxCount, s.length()); mKey.resize(mMaxCount, 0); for(int i=0; i<nItems; i++) { char name[2]={s[i], 0}; if (!name[0]) break; if (!key.getString(name, mFiles[i])) break; mKey[i] = (char)('a'+i); } }
size_t vdhash<VDStringA>::operator()(const VDStringA& s) const { return VDHashString32(s.data(), s.length()); }