diff options
Diffstat (limited to 'ShiftOS.Objects/UserConfig.cs')
| -rw-r--r-- | ShiftOS.Objects/UserConfig.cs | 8 |
1 files changed, 5 insertions, 3 deletions
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<UserConfig>(File.ReadAllText("servers.json")); + if (File.Exists("config.json")) + current = JsonConvert.DeserializeObject<UserConfig>(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; |
