From 97eb46a2db46f2c149517a0663b0dcb3b466e4a4 Mon Sep 17 00:00:00 2001 From: Souryo Date: Sun, 17 Jul 2016 15:04:28 -0400 Subject: [PATCH] Tests: Force MMC3 alternate behavior for the tests that expect it (so that they stop failing) --- Core/AutoRomTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core/AutoRomTest.cpp b/Core/AutoRomTest.cpp index e8e348ef..4edbc77c 100644 --- a/Core/AutoRomTest.cpp +++ b/Core/AutoRomTest.cpp @@ -181,6 +181,13 @@ void AutoRomTest::RecordFromTest(string newTestFilename, string existingTestFile int32_t AutoRomTest::Run(string filename) { + string testName = FolderUtilities::GetFilename(filename, false); + if(testName.compare("5.MMC3_rev_A") == 0 || testName.compare("6-MMC6") == 0 || testName.compare("6-MMC3_alt") == 0) { + EmulationSettings::SetFlags(EmulationFlags::Mmc3IrqAltBehavior); + } else { + EmulationSettings::ClearFlags(EmulationFlags::Mmc3IrqAltBehavior); + } + ZipReader zipReader; zipReader.LoadArchive(filename); std::stringstream testData = zipReader.GetStream("TestData.mrt");