summaryrefslogtreecommitdiff
path: root/DiscoBot/DSA_Game/Save/Properties.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/DSA_Game/Save/Properties.cs')
-rw-r--r--DiscoBot/DSA_Game/Save/Properties.cs6
1 files changed, 4 insertions, 2 deletions
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<Sound> Sounds { get => objects["Sound"] as List<Sound>; 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);
}
}
}