From ba1f440d0762ab77cd3f08734043df7db5b4329e Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Fri, 15 Jun 2018 21:58:34 +0200 Subject: implemented session saves --- DiscoBot/DSA_Game/Save/Properties.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'DiscoBot/DSA_Game/Save/Properties.cs') diff --git a/DiscoBot/DSA_Game/Save/Properties.cs b/DiscoBot/DSA_Game/Save/Properties.cs index 5d99a56..fe2f798 100644 --- a/DiscoBot/DSA_Game/Save/Properties.cs +++ b/DiscoBot/DSA_Game/Save/Properties.cs @@ -34,10 +34,7 @@ namespace DiscoBot.DSA_Game.Save } public void Serialize(string path = @"..\..\Properties.json") - {/* - var stream = new StreamWriter(path); // Load properties file - var reader = new JsonTextWriter(stream); // create stream reader*/ - + { try { File.WriteAllText(path, JsonConvert.SerializeObject(this, Formatting.Indented)); // Deserialize Data and create CommandInfo Struct -- cgit v1.2.3-70-g09d2