From ad0a46175e7efbbd5bdf952aacc69d8a7750b05a Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Thu, 27 Sep 2018 23:46:43 +0200 Subject: implemented rudemetary groups --- DSACore/DSA_Game/Dsa.cs | 4 ++-- DSACore/DSA_Game/Save/Session.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'DSACore/DSA_Game') diff --git a/DSACore/DSA_Game/Dsa.cs b/DSACore/DSA_Game/Dsa.cs index 7258e8c..94de194 100644 --- a/DSACore/DSA_Game/Dsa.cs +++ b/DSACore/DSA_Game/Dsa.cs @@ -13,7 +13,7 @@ namespace DSACore.DSA_Game public static class Dsa { - public const string rootPath = "DiscoBot\\DSACore\\"; + public const string rootPath = "";//"DiscoBot\\DSACore\\"; private static Session s_session; @@ -46,7 +46,7 @@ namespace DSACore.DSA_Game //new .Auxiliary.Calculator.StringSolver("1d100 - (1d200 + 1) * -50000").Solve(); /*Session = new Session();*/ // relation.Add("Papo", "Pump aus der Gosse"); - foreach (var filename in Directory.GetFiles("helden", "*.xml")) + foreach (var filename in Directory.GetFiles(rootPath + "helden", "*.xml")) { Chars.Add(new Character(filename)); (Chars.Last() as Character)?.Talente.Select(x => new Talent(x.Name, x.Probe, 0)) diff --git a/DSACore/DSA_Game/Save/Session.cs b/DSACore/DSA_Game/Save/Session.cs index d343920..b402656 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; } = Dsa.rootPath + @"sessions"; public Dictionary Relation { get; set; } = new Dictionary(); // dictionary to match the char -- cgit v1.2.3-54-g00ecf