2017-08-30 18:31:27 -04: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();
|
|
|
|
|
2017-10-07 15:16:14 -04:00
|
|
|
bool LoadScript(string scriptName, string scriptContent, Debugger* debugger);
|
2017-08-30 18:31:27 -04:00
|
|
|
|
2017-09-08 17:20:40 -04:00
|
|
|
void ProcessCpuOperation(uint16_t addr, uint8_t &value, MemoryOperationType type);
|
|
|
|
void ProcessPpuOperation(uint16_t addr, uint8_t &value, MemoryOperationType type);
|
2017-08-30 18:31:27 -04:00
|
|
|
void ProcessEvent(EventType eventType);
|
2017-10-05 19:44:37 -04:00
|
|
|
bool ProcessSavestate();
|
2017-10-07 19:48:45 -04:00
|
|
|
|
|
|
|
bool CheckStateLoadedFlag();
|
2017-08-30 18:31:27 -04:00
|
|
|
};
|