Fixed automatic tests...
This commit is contained in:
parent
fbaf3bc42e
commit
9f68ce1a8c
2 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,7 @@ bool Console::RunTest(uint8_t *expectedResult)
|
|||
_ppu->Exec();
|
||||
|
||||
if(timer.GetElapsedMS() > 100) {
|
||||
if(memcmp(_ppu->GetFrameBuffer(), expectedResult, 256 * 240 * 4)) {
|
||||
if(memcmp(_ppu->GetFrameBuffer(), expectedResult, 256 * 240 * 4) == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -312,6 +312,7 @@ namespace NES {
|
|||
|
||||
if(testResult) {
|
||||
uint8_t* expectedResult = new uint8_t[256 * 240 * 4];
|
||||
testResult.read((char*)expectedResult, 256 * 240 * 4);
|
||||
|
||||
Console *console = new Console(L"../TestSuite/" + testROM);
|
||||
std::wcout << testROM << ": ";
|
||||
|
|
Loading…
Add table
Reference in a new issue