Mesen-SX/Core/ScriptHost.h

29 lines
572 B
C
Raw Normal View History

2019-05-12 21:18:05 -04:00
#pragma once
#include "stdafx.h"
#include "DebugTypes.h"
#include "EventType.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);
2020-12-19 23:30:09 +03:00
void ProcessMemoryOperation(uint32_t addr, uint8_t& value, MemoryOperationType type, CpuType cpuType);
2019-05-12 21:18:05 -04:00
void ProcessEvent(EventType eventType);
bool ProcessSavestate();
bool CheckStateLoadedFlag();
2020-12-19 23:30:09 +03:00
};