From c6facbdf4a7d479a1e3faed834dcc4fc4657c75d Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Wed, 10 Apr 2019 14:12:29 -0500 Subject: [PATCH] Fix BPS patch support. (ArtiiP) --- memmap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/memmap.cpp b/memmap.cpp index 7d18f2f9..e8767311 100644 --- a/memmap.cpp +++ b/memmap.cpp @@ -3860,6 +3860,7 @@ static bool8 ReadBPSPatch (Stream *r, long, int32 &rom_size) if(patch_crc32 != pp_crc32) { delete[] data; return false; } //patch is corrupted if(!Settings.IgnorePatchChecksum && rom_crc32 != source_crc32) { delete[] data; return false; } //patch is for a different ROM + XPSdecode(data, addr, size); uint32 target_size = XPSdecode(data, addr, size); uint32 metadata_size = XPSdecode(data, addr, size); addr += metadata_size;