aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Downloader.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-05 08:02:30 -0500
committerMichael <[email protected]>2017-03-05 08:02:30 -0500
commitfc55d4feecb64c2bae355cceac93bdac73fe00ea (patch)
tree717d244785ec4c33b477e31d56b07212e2581f0a /ShiftOS.WinForms/Applications/Downloader.cs
parenteb37ab1ac44114a9f72b31251f236181be225fa2 (diff)
downloadshiftos_thereturn-fc55d4feecb64c2bae355cceac93bdac73fe00ea.tar.gz
shiftos_thereturn-fc55d4feecb64c2bae355cceac93bdac73fe00ea.tar.bz2
shiftos_thereturn-fc55d4feecb64c2bae355cceac93bdac73fe00ea.zip
hang on, busy making a sad victor tran face
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(() =>