lua method - client.getconfig(), returns the current config object, note that you can actually use this to set primitive config values, do so at your own risk

This commit is contained in:
adelikat 2018-12-01 09:11:34 -06:00
parent 615d7848f9
commit 12c11eec5d
1 changed files with 9 additions and 0 deletions

View File

@ -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()