diff options
Diffstat (limited to 'DSACore/DSA_Game')
-rw-r--r-- | DSACore/DSA_Game/Dsa.cs | 2 | ||||
-rw-r--r-- | DSACore/DSA_Game/Save/Properties.cs | 2 | ||||
-rw-r--r-- | DSACore/DSA_Game/Save/Session.cs | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/DSACore/DSA_Game/Dsa.cs b/DSACore/DSA_Game/Dsa.cs index 4573542..ff74788 100644 --- a/DSACore/DSA_Game/Dsa.cs +++ b/DSACore/DSA_Game/Dsa.cs @@ -57,7 +57,7 @@ namespace DSACore.DSA_Game { Chars = Chars.Select(x => SaveChar.FromICharacter(x)).ToList() }; - Session.Save(); + //Session.Save(); } public static ICharacter GetCharacter(ulong id) diff --git a/DSACore/DSA_Game/Save/Properties.cs b/DSACore/DSA_Game/Save/Properties.cs index 1c86ab9..f201431 100644 --- a/DSACore/DSA_Game/Save/Properties.cs +++ b/DSACore/DSA_Game/Save/Properties.cs @@ -35,7 +35,7 @@ namespace DSACore.DSA_Game.Save set => objects["Sound"] = value; } - public static void Deserialize(string path = @"..\..\Properties") + public static void Deserialize(string path = /*@"..\.."*/@"Properties") { var files = Directory.GetFiles(path, "*.json"); diff --git a/DSACore/DSA_Game/Save/Session.cs b/DSACore/DSA_Game/Save/Session.cs index 60e900f..d343920 100644 --- a/DSACore/DSA_Game/Save/Session.cs +++ b/DSACore/DSA_Game/Save/Session.cs @@ -9,7 +9,7 @@ namespace DSACore.DSA_Game.Save public class Session { - public static string DirectoryPath { get; set; } = @"..\..\sessions"; + public static string DirectoryPath { get; set; } = @"sessions"; public Dictionary<string, string> Relation { get; set; } = new Dictionary<string, string>(); // dictionary to match the char @@ -17,7 +17,7 @@ namespace DSACore.DSA_Game.Save public string SessionName { get; set; } - public static Session Load(string path = @"..\..\session.json") + public static Session Load(string path) { try { @@ -31,7 +31,7 @@ namespace DSACore.DSA_Game.Save } } - public void Save(string path = @"..\..\session.json") + public void Save(string path) { try { |