diff --git a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Client.cs b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Client.cs index a2a8d3674a..44a352326c 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Client.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Client.cs @@ -8,6 +8,8 @@ using BizHawk.Common; using BizHawk.Emulation.Common; using BizHawk.Client.Common; +// ReSharper disable StringLiteralTypo +// ReSharper disable UnusedMember.Global namespace BizHawk.Client.EmuHawk { [Description("A library for manipulating the EmuHawk client UI")] @@ -340,6 +342,13 @@ namespace BizHawk.Client.EmuHawk } } + [LuaMethodExample("local curSpeed = client.getconfig().SpeedPercent")] + [LuaMethod("getconfig", "gets the current config settings object")] + public object GetConfig() + { + return Global.Config; + } + [LuaMethodExample("client.togglepause( );")] [LuaMethod("togglepause", "Toggles the current pause state")] public static void TogglePause()