Automatic tests: PAL test support

This commit is contained in:
Souryo 2016-08-22 20:26:29 -04:00
parent 82884113d7
commit e0dc31c9ef

View File

@ -188,6 +188,12 @@ int32_t AutoRomTest::Run(string filename)
EmulationSettings::ClearFlags(EmulationFlags::Mmc3IrqAltBehavior);
}
if(testName.compare("demo_pal") == 0 || testName.substr(0, 4).compare("pal_") == 0) {
EmulationSettings::SetNesModel(NesModel::PAL);
} else {
EmulationSettings::SetNesModel(NesModel::NTSC);
}
ZipReader zipReader;
zipReader.LoadArchive(filename);
std::stringstream testData = zipReader.GetStream("TestData.mrt");