diff --git a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Client.cs b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Client.cs index 753a70339b..9341433b27 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Client.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Client.cs @@ -161,6 +161,24 @@ namespace BizHawk.Client.EmuHawk GlobalWin.MainForm.FrameBufferResized(); } + [LuaMethodAttributes( + "SetSoundOn", + "Sets the state of the Sound On toggle" + )] + public static void SetSoundOn(bool enable) + { + Global.Config.SoundEnabled = enable; + } + + [LuaMethodAttributes( + "GetSoundOn", + "Gets the state of the Sound On toggle" + )] + public static bool GetSoundOn() + { + return Global.Config.SoundEnabled; + } + [LuaMethodAttributes( "SetClientExtraPadding", "Sets the extra padding added to the 'native' surface so that you can draw HUD elements in predictable placements"