summaryrefslogtreecommitdiffstats
path: root/src/Plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugin.cpp')
-rw-r--r--src/Plugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Plugin.cpp b/src/Plugin.cpp
index 83e9bdd..d7a9820 100644
--- a/src/Plugin.cpp
+++ b/src/Plugin.cpp
@@ -214,6 +214,10 @@ void PluginSystem::Init() {
apiTable["RegisterDimension"] = PluginApi::RegisterDimension;
}
+lua_State* PluginSystem::GetLuaState() {
+ return lua.lua_state();
+}
+
void PluginSystem::Execute(const std::string &luaCode, bool except) {
OPTICK_EVENT();
try {