aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Objects/UserConfig.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-25 23:25:52 -0400
committerMichael <[email protected]>2017-07-25 23:25:52 -0400
commit68c7de273f4930b54f8504cc777660fc3c68156c (patch)
tree28c0c68b08113ba1ef9ee93d71574c3553efd24f /ShiftOS.Objects/UserConfig.cs
parente38da782aaa9398b6659d72cf20588c5418ac9ba (diff)
downloadshiftos_thereturn-68c7de273f4930b54f8504cc777660fc3c68156c.tar.gz
shiftos_thereturn-68c7de273f4930b54f8504cc777660fc3c68156c.tar.bz2
shiftos_thereturn-68c7de273f4930b54f8504cc777660fc3c68156c.zip
resolution settings
Diffstat (limited to 'ShiftOS.Objects/UserConfig.cs')
-rw-r--r--ShiftOS.Objects/UserConfig.cs8
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;