significant work on Pause component (not ready yet, but feel free to test)

This commit is contained in:
somewhatlurker
2019-10-19 15:29:07 +11:00
parent 6f839da99c
commit acbebbffc0
9 changed files with 187 additions and 0 deletions
@@ -0,0 +1,29 @@
#pragma once
#include "EmulatorComponent.h"
#include <vector>
namespace TLAC::Components
{
class Pause : public EmulatorComponent
{
public:
Pause();
~Pause();
virtual const char* GetDisplayName() override;
virtual void Initialize(ComponentsManager*) override;
virtual void Update() override;
virtual void UpdatePostInput() override;
private:
bool isPaused;
bool isPauseKeyTapped();
void setPaused(bool pause);
std::vector<bool> streamPlayStates;
void InjectCode(void* address, const std::vector<uint8_t> data);
std::vector<uint8_t> origAetMovOp;
uint8_t* aetMovPatchAddress = (uint8_t*)0x1401703b3;
};
}