From 22e567ca3fac3878d3c9b7a2207bd0821a34d7c1 Mon Sep 17 00:00:00 2001 From: Aren Date: Tue, 7 Feb 2017 16:58:22 +0100 Subject: [PATCH] Added audio volume shiftorium upgrade --- ShiftOS_TheReturn/Commands.cs | 2 ++ 1 file changed, 2 insertions(+) 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 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() {