MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ChecksumIt

Function ChecksumIt

pcsx2/ps2/BiosTools.cpp:199–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199static void ChecksumIt(u32& result, u32 offset, u32 size)
200{
201 const u8* srcdata = &BiosRom[offset];
202 pxAssume((size & 3) == 0);
203 for (size_t i = 0; i < size / 4; ++i)
204 result ^= reinterpret_cast<const u32*>(srcdata)[i];
205}
206
207// Attempts to load a BIOS rom sub-component, by trying multiple combinations of base
208// filename and extension. The bios specified in the user's configuration is used as

Callers 1

LoadBIOSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected