aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorAren <[email protected]>2017-02-07 16:58:22 +0100
committerAren <[email protected]>2017-02-07 16:58:22 +0100
commit22e567ca3fac3878d3c9b7a2207bd0821a34d7c1 (patch)
treec2ec14c7b4bba357356b7d8a3358eb84a0e714fe /ShiftOS_TheReturn
parent28f0cda0c5c77d9db40c8f0433e494b1f50b31c6 (diff)
downloadshiftos_thereturn-22e567ca3fac3878d3c9b7a2207bd0821a34d7c1.tar.gz
shiftos_thereturn-22e567ca3fac3878d3c9b7a2207bd0821a34d7c1.tar.bz2
shiftos_thereturn-22e567ca3fac3878d3c9b7a2207bd0821a34d7c1.zip
Added audio volume shiftorium upgrade
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/Commands.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs
index 69bcfa3..7df700f 100644
--- a/ShiftOS_TheReturn/Commands.cs
+++ b/ShiftOS_TheReturn/Commands.cs
@@ -112,6 +112,7 @@ namespace ShiftOS.Engine
{
[Command("setvol", description = "Set the volume of the system audio to anywhere between 0 and 100.")]
[RequiresArgument("value")]
+ [RequiresUpgrade("audio_volume")]
public static bool SetVolume(Dictionary<string,object> args)
{
int val = Convert.ToInt32(args["value"].ToString());
@@ -119,6 +120,7 @@ namespace ShiftOS.Engine
AudioManager.SetVolume(volume);
return true;
}
+ [RequiresUpgrade("audio_volume")]
[Command("mute", description = "Sets the volume of the system audio to 0")]
public static bool MuteAudio()
{