| 197 | } |
| 198 | |
| 199 | static 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 |