mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-05 19:05:32 +00:00
37c86fa5cf
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
27 lines
562 B
C++
27 lines
562 B
C++
#include "stdafx.h"
|
|
#include "FuseTest.h"
|
|
|
|
void Fuse::Test::read(std::ifstream& file) {
|
|
|
|
finish = false;
|
|
do {
|
|
std::getline(file, description);
|
|
finish = file.eof();
|
|
if (!description.empty() && (description[0] == ';')) // ignore comments
|
|
description.clear();
|
|
} while (description.empty() && !finish);
|
|
|
|
if (finish)
|
|
return;
|
|
|
|
registerState.read(file);
|
|
|
|
bool complete = false;
|
|
do {
|
|
MemoryDatum memoryDatum;
|
|
memoryDatum.read(file);
|
|
complete = memoryDatum.finished();
|
|
if (!complete)
|
|
memoryData.push_back(memoryDatum);
|
|
} while (!complete);
|
|
} |