From 19bf37de7642ae8cdefd8fc6b4fadac3ac96ea9b Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Wed, 26 Sep 2018 23:49:26 +0200 Subject: ported most code to WebApiProject everything except the user identification and file locations should be somewhat functional --- DSACore/DSA_Game/Save/SaveCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'DSACore/DSA_Game/Save/SaveCommand.cs') diff --git a/DSACore/DSA_Game/Save/SaveCommand.cs b/DSACore/DSA_Game/Save/SaveCommand.cs index 9a2ae8e..198d707 100644 --- a/DSACore/DSA_Game/Save/SaveCommand.cs +++ b/DSACore/DSA_Game/Save/SaveCommand.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Threading.Tasks; -namespace DiscoBot.DSA_Game.Save +namespace DSACore.DSA_Game.Save { using System.IO; @@ -17,7 +17,7 @@ namespace DiscoBot.DSA_Game.Save return; } - var path = DSA_Game.Save.Session.DirectoryPath + @"\" + name; + var path = Save.Session.DirectoryPath + @"\" + name; var files = Directory.GetFiles(path); var session = files.OrderByDescending(x => Convert.ToInt32(x.Split('-').Last().Split('.').First())).First(); -- cgit v1.2.3-54-g00ecf