mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-13 20:42:24 +00:00
26 lines
678 B
C++
26 lines
678 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "ScriptingContext.h"
|
|
|
|
struct lua_State;
|
|
class Debugger;
|
|
|
|
class LuaScriptingContext : public ScriptingContext
|
|
{
|
|
private:
|
|
lua_State* _lua = nullptr;
|
|
|
|
protected:
|
|
void InternalCallMemoryCallback(uint16_t addr, uint8_t &value, CallbackType type) override;
|
|
int InternalCallEventCallback(EventType type) override;
|
|
|
|
public:
|
|
LuaScriptingContext();
|
|
~LuaScriptingContext();
|
|
|
|
bool LoadScript(string scriptName, string scriptContent, Debugger* debugger) override;
|
|
|
|
void UnregisterMemoryCallback(CallbackType type, int startAddr, int endAddr, int reference) override;
|
|
void UnregisterEventCallback(EventType type, int reference) override;
|
|
};
|