#include "emulationadaptor.h"
#include "../p6el.h"

EmulationAdaptor::EmulationAdaptor(QObject *parent)
	: QObject(parent)
	, P6Core(nullptr)
	, RetCode(EL6::Quit)
{
}

void EmulationAdaptor::doEventLoop(EL6::ReturnCode rc)
{
	P6Core->Stop();
    RetCode = P6Core->EventLoop(rc);
	emit finished();
}
