2017-04-23 18:47:28 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "INotificationListener.h"
|
2018-06-02 18:56:26 -04:00
|
|
|
#include "IInputProvider.h"
|
2017-04-23 18:47:28 -04:00
|
|
|
#include "../Utilities/AutoResetEvent.h"
|
|
|
|
|
2018-07-01 15:21:05 -04:00
|
|
|
class Console;
|
|
|
|
|
2018-07-02 14:49:19 -04:00
|
|
|
class AutomaticRomTest : public INotificationListener, public IInputProvider, public std::enable_shared_from_this<AutomaticRomTest>
|
2017-04-23 18:47:28 -04:00
|
|
|
{
|
|
|
|
private:
|
2018-07-01 15:21:05 -04:00
|
|
|
shared_ptr<Console> _console;
|
|
|
|
|
2017-04-23 18:47:28 -04:00
|
|
|
AutoResetEvent _signal;
|
|
|
|
uint16_t _prevFrameBuffer[256 * 240];
|
|
|
|
uint32_t _errorCode;
|
|
|
|
|
|
|
|
public:
|
|
|
|
AutomaticRomTest();
|
2018-07-02 19:01:10 -04:00
|
|
|
virtual ~AutomaticRomTest();
|
2017-04-23 18:47:28 -04:00
|
|
|
|
|
|
|
void ProcessNotification(ConsoleNotificationType type, void* parameter) override;
|
|
|
|
int32_t Run(string filename);
|
|
|
|
|
2018-06-02 18:56:26 -04:00
|
|
|
// Inherited via IInputProvider
|
|
|
|
virtual bool SetInput(BaseControlDevice * device) override;
|
2017-04-23 18:47:28 -04:00
|
|
|
};
|