Mesen/Core/ScriptHost.h

28 lines
615 B
C
Raw Normal View History

2017-08-30 22:31:27 +00:00
#pragma once
#include "stdafx.h"
#include "DebuggerTypes.h"
class ScriptingContext;
class Debugger;
class ScriptHost
{
private:
shared_ptr<ScriptingContext> _context;
int _scriptId;
public:
ScriptHost(int scriptId);
int GetScriptId();
const char* GetLog();
bool LoadScript(string scriptName, string scriptContent, Debugger* debugger);
2017-08-30 22:31:27 +00:00
void ProcessCpuOperation(uint16_t addr, uint8_t &value, MemoryOperationType type);
void ProcessPpuOperation(uint16_t addr, uint8_t &value, MemoryOperationType type);
2017-08-30 22:31:27 +00:00
void ProcessEvent(EventType eventType);
bool ProcessSavestate();
bool CheckStateLoadedFlag();
2017-08-30 22:31:27 +00:00
};