diff options
| author | TrueKuehli <rctcoaster2000@hotmail.de> | 2018-09-29 17:19:43 +0200 |
|---|---|---|
| committer | TrueKuehli <rctcoaster2000@hotmail.de> | 2018-09-29 17:19:43 +0200 |
| commit | b83fc90abacc73262e0f8404cebadf6d64eb10ae (patch) | |
| tree | d63b921c9bcdf8d381fc02ecfb0a1dd425ebb561 /DSACore/DSA_Game | |
| parent | 586d564f3c4c509c1aae931331e96f0382178f80 (diff) | |
| parent | 680967aee589e4a8d277044b204de07cbe32f41e (diff) | |
Merge branch 'WebApi' of https://github.com/TrueDoctor/DiscoBot into WebApi
Merged the stuffs
Diffstat (limited to 'DSACore/DSA_Game')
| -rw-r--r-- | DSACore/DSA_Game/Dsa.cs | 4 | ||||
| -rw-r--r-- | DSACore/DSA_Game/Save/Session.cs | 2 |
2 files changed, 3 insertions, 3 deletions
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<string, string> Relation { get; set; } = new Dictionary<string, string>(); // dictionary to match the char |
