From 68c7de273f4930b54f8504cc777660fc3c68156c Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 25 Jul 2017 23:25:52 -0400 Subject: resolution settings --- ShiftOS.Objects/UserConfig.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ShiftOS.Objects/UserConfig.cs') diff --git a/ShiftOS.Objects/UserConfig.cs b/ShiftOS.Objects/UserConfig.cs index 8232230..b483e26 100644 --- a/ShiftOS.Objects/UserConfig.cs +++ b/ShiftOS.Objects/UserConfig.cs @@ -13,6 +13,8 @@ namespace ShiftOS.Objects public string Language { get; set; } public string DigitalSocietyAddress { get; set; } public int DigitalSocietyPort { get; set; } + public int ScreenWidth = 1920; + public int ScreenHeight = 1080; private static UserConfig def = new UserConfig { @@ -27,11 +29,11 @@ namespace ShiftOS.Objects { if (current != null) return current; - if (File.Exists("servers.json")) - current = JsonConvert.DeserializeObject(File.ReadAllText("servers.json")); + if (File.Exists("config.json")) + current = JsonConvert.DeserializeObject(File.ReadAllText("config.json")); else { - File.WriteAllText("servers.json", JsonConvert.SerializeObject(def, Formatting.Indented)); + File.WriteAllText("config.json", JsonConvert.SerializeObject(def, Formatting.Indented)); current = def; } return current; -- cgit v1.2.3