From cd4785347eb641a0fab1a7157d701dd5d8c3259f Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Thu, 27 Sep 2018 00:31:30 +0200 Subject: hoked the command handler up to the web api modified file locations --- DSACore/DSA_Game/Dsa.cs | 2 +- DSACore/DSA_Game/Save/Properties.cs | 2 +- DSACore/DSA_Game/Save/Session.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'DSACore/DSA_Game') 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 Relation { get; set; } = new Dictionary(); // 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 { -- cgit v1.2.3-54-g00ecf