Tests: Force MMC3 alternate behavior for the tests that expect it (so that they stop failing)
This commit is contained in:
parent
27be2537cc
commit
97eb46a2db
1 changed files with 7 additions and 0 deletions
|
@ -181,6 +181,13 @@ void AutoRomTest::RecordFromTest(string newTestFilename, string existingTestFile
|
||||||
|
|
||||||
int32_t AutoRomTest::Run(string filename)
|
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 zipReader;
|
||||||
zipReader.LoadArchive(filename);
|
zipReader.LoadArchive(filename);
|
||||||
std::stringstream testData = zipReader.GetStream("TestData.mrt");
|
std::stringstream testData = zipReader.GetStream("TestData.mrt");
|
||||||
|
|
Loading…
Add table
Reference in a new issue