aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Downloader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications/Downloader.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Downloader.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/Downloader.cs b/ShiftOS.WinForms/Applications/Downloader.cs
index b1b7ed9..48a5cfd 100644
--- a/ShiftOS.WinForms/Applications/Downloader.cs
+++ b/ShiftOS.WinForms/Applications/Downloader.cs
@@ -187,6 +187,16 @@ namespace ShiftOS.WinForms.Applications
return 256;
}
+ public static IEnumerable<ShiftOS.Objects.EngineShiftnetSubscription> GetAllSubscriptions()
+ {
+ //For now we'll have them hard-coded into the client but in future they'll be in the MUD.
+
+ foreach(var sub in JsonConvert.DeserializeObject<ShiftOS.Objects.EngineShiftnetSubscription[]>(Properties.Resources.ShiftnetServices))
+ {
+ yield return sub;
+ }
+ }
+
public static void StartDownload(Download down)
{
var t = new Thread(() =>