From 1ef4aa027b6c77a45e7d895f4efcd074e3afaf88 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Tue, 19 Jun 2018 14:25:14 +0200 Subject: Implemented session saves --- DiscoBot/DSA_Game/Save/Properties.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 45bad4a..67d30b0 100644 --- a/DiscoBot/DSA_Game/Save/Properties.cs +++ b/DiscoBot/DSA_Game/Save/Properties.cs @@ -34,7 +34,7 @@ namespace DiscoBot.DSA_Game.Save public static List Sounds { get => objects["Sound"] as List; set => objects["Sound"] = value; } - public static void Deserialize(string path = @"..\..\sessions") + public static void Deserialize(string path = @"..\..\Properties") { var files = Directory.GetFiles(path, "*.json"); @@ -65,7 +65,7 @@ namespace DiscoBot.DSA_Game.Save } - public static void Serialize(string path = @"..\..\sessions\") + public static void Serialize(string path = @"..\..\Properties\") { try { @@ -80,6 +80,8 @@ namespace DiscoBot.DSA_Game.Save catch (Exception e) { // ignored + var log = new LogMessage(LogSeverity.Warning, "Properties", $"Speichern von Save-File fehlgeschlagen.", e); + Console.WriteLine(log); } } } -- cgit v1.2.3-70-g09d2