EightBit/LR35902/fusetest_LR35902/FuseTests.cpp
Adrian.Conlon 78e5451f93 Remove remaining Z80 -> LR35902 test translation code.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
2017-08-12 14:29:12 +01:00

20 lines
368 B
C++

#include "stdafx.h"
#include "FuseTests.h"
void Fuse::Tests::read(std::ifstream& file) {
bool finished = false;
while (!file.eof()) {
Test test;
test.read(file);
finished = test.finish;
if (!finished)
tests[test.description] = test;
}
}
void Fuse::Tests::read(std::string path) {
std::ifstream file;
file >> std::hex;
file.open(path);
read(file);
}