Fix some parameters I missed

This commit is contained in:
Jesse Talavera-Greenberg 2023-08-12 15:53:11 -04:00
parent aa8c879d42
commit d67c269d11

View File

@ -879,11 +879,11 @@ static void melonds::ValidateFirmware() {
// I don't really know how this works, it just came from upstream
// TODO: Peek at the firmware buffer directly by forward-declaring SPI_Firmware::Firmware and SPI_Firmware::FirmwareLength
FileHandle* f = Platform::OpenLocalFile(config::system::FirmwarePath(), "rb");
FileHandle* f = Platform::OpenLocalFile(config::system::FirmwarePath(), FileMode::Read);
if (!f) return;
u8 chk1[0x180], chk2[0x180];
FileSeek(f, 0, FileSeekOrigin::Set);
FileSeek(f, 0, FileSeekOrigin::Start);
FileRead(chk1, 1, 0x180, f);
FileSeek(f, -0x380, FileSeekOrigin::End);
FileRead(chk2, 1, 0x180, f);