pub fn lookup(nes: &Nes) -> Option<VsDbEntry>Expand description
Look up the Vs. System per-game database entry for a loaded ROM.
Matches the ROM’s header-independent identity (Nes::rom_sha256) first,
then its whole-image hash (Nes::image_sha256); see the module’s “Keys”
section. Returns None for a ROM the table does not describe, including
every non-Vs. ROM. no_std-safe.
v2.9.8 changed the parameter from a bare hash to the Nes: the old
lookup(&[u8; 32]) could only be handed one of the two hashes, and handing
it the wrong one compiled and silently missed. Use lookup_by_hashes
when the two hashes are available without a Nes.