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:
parent
615d7848f9
commit
12c11eec5d
|
@ -8,6 +8,8 @@ using BizHawk.Common;
|
||||||
using BizHawk.Emulation.Common;
|
using BizHawk.Emulation.Common;
|
||||||
using BizHawk.Client.Common;
|
using BizHawk.Client.Common;
|
||||||
|
|
||||||
|
// ReSharper disable StringLiteralTypo
|
||||||
|
// ReSharper disable UnusedMember.Global
|
||||||
namespace BizHawk.Client.EmuHawk
|
namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
[Description("A library for manipulating the EmuHawk client UI")]
|
[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( );")]
|
[LuaMethodExample("client.togglepause( );")]
|
||||||
[LuaMethod("togglepause", "Toggles the current pause state")]
|
[LuaMethod("togglepause", "Toggles the current pause state")]
|
||||||
public static void TogglePause()
|
public static void TogglePause()
|
||||||
|
|
Loading…
Reference in New Issue