From 900a9e53226ebd948db9c529fd207b2abf963ecf Mon Sep 17 00:00:00 2001 From: feos Date: Thu, 8 Mar 2018 23:44:42 +0300 Subject: [PATCH] lua: let user know which lua core is in use --- BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs b/BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs index 1b29884878..e8083c6848 100644 --- a/BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs +++ b/BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs @@ -349,5 +349,11 @@ namespace BizHawk.Client.Common return ""; } + + [LuaMethod("getluacore", "returns the name of the Lua core currently in use")] + public string GetLuaBackend() + { + return Lua.WhichLua; + } } }