From 54b677c186377b0a257003771168d56355578f53 Mon Sep 17 00:00:00 2001 From: Souryo Date: Mon, 6 Jun 2016 17:06:28 -0400 Subject: [PATCH] NES 2.0: Added CRC checks for Major League, Holy Diver & Fire Hawk --- Core/iNesLoader.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Core/iNesLoader.cpp b/Core/iNesLoader.cpp index a942b59f..3d82ba56 100644 --- a/Core/iNesLoader.cpp +++ b/Core/iNesLoader.cpp @@ -17,7 +17,16 @@ std::unordered_map iNesLoader::_submapperByCrc = { { 0x7E57FBEC, 3 }, //T&C Surf Designs 2: Thrilla's Surfari { 0xEA27B477, 3 }, //T2: Terminator 2: Judgment Day { 0x7B4ED0BB, 3 }, //WWF King of the Ring - { 0xD4611B79, 3 } //WWF WrestleMania: Steel Cage Challenge + { 0xD4611B79, 3 }, //WWF WrestleMania: Steel Cage Challenge + + //IREM-G101 - Mapper 32, SubMapper 1 + { 0x243A8735, 1 }, //Major League + + //IREM Holy Diver - Mapper 78, SubMapper 1 + { 0xBA51AC6F, 3 }, //Holy Diver + + //CAMERICA-BF9097 - Mapper 71, SubMapper 1 + { 0x1BC686A8, 1 }, //Fire Hawk }; RomData iNesLoader::LoadRom(vector& romFile) @@ -52,7 +61,9 @@ RomData iNesLoader::LoadRom(vector& romFile) auto crcCheckResult = _submapperByCrc.find(romCrc); if(crcCheckResult != _submapperByCrc.end()) { romData.SubMapperID = crcCheckResult->second; + #ifdef _DEBUG MessageManager::DisplayMessage("GameInfo", "Header information corrected."); + #endif } }