From fbc81ebb8e9371571baa192edcd58caa374f3c08 Mon Sep 17 00:00:00 2001 From: Lucas Assis Ribeiro Date: Tue, 21 Jun 2016 00:32:06 -0300 Subject: [PATCH] Alpha 2.0-3 --- Master/NucleusCoopTool/Nucleus.Coop.csproj | 2 +- Master/NucleusGaming/IO/Logging/LogManager.cs | 6 ++++++ Master/NucleusGaming/Managers/GameManager.cs | 7 ++++++- Master/NucleusGaming/Nucleus.Gaming.csproj | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Master/NucleusCoopTool/Nucleus.Coop.csproj b/Master/NucleusCoopTool/Nucleus.Coop.csproj index 8908e193..426d0ef0 100644 --- a/Master/NucleusCoopTool/Nucleus.Coop.csproj +++ b/Master/NucleusCoopTool/Nucleus.Coop.csproj @@ -52,7 +52,7 @@ pdbonly true bin\Release\ - TRACE + TRACE;ALPHA prompt 4 false diff --git a/Master/NucleusGaming/IO/Logging/LogManager.cs b/Master/NucleusGaming/IO/Logging/LogManager.cs index 66dc81aa..04cd03bf 100644 --- a/Master/NucleusGaming/IO/Logging/LogManager.cs +++ b/Master/NucleusGaming/IO/Logging/LogManager.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Reflection; using System.Text; using System.Threading; @@ -41,8 +42,13 @@ public LogManager() private string GetAppDataPath() { +#if ALPHA + string local = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); + return Path.Combine(local, "Data"); +#else string appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); return Path.Combine(appData, "Nucleus Coop"); +#endif } protected string GetLogPath() diff --git a/Master/NucleusGaming/Managers/GameManager.cs b/Master/NucleusGaming/Managers/GameManager.cs index 17aa1c1e..57b12a6b 100644 --- a/Master/NucleusGaming/Managers/GameManager.cs +++ b/Master/NucleusGaming/Managers/GameManager.cs @@ -176,8 +176,13 @@ public void End() private string GetAppDataPath() { +#if ALPHA + string local = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); + return Path.Combine(local, "Data"); +#else string appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); return Path.Combine(appData, "Nucleus Coop"); +#endif } protected string GetUserProfilePath() { @@ -397,7 +402,7 @@ private void Initialize() } } } - #endregion +#endregion public void Play(IGameHandler handler) { diff --git a/Master/NucleusGaming/Nucleus.Gaming.csproj b/Master/NucleusGaming/Nucleus.Gaming.csproj index ed318880..cb235821 100644 --- a/Master/NucleusGaming/Nucleus.Gaming.csproj +++ b/Master/NucleusGaming/Nucleus.Gaming.csproj @@ -34,7 +34,7 @@ pdbonly true bin\Release\ - TRACE;UNSAFE + TRACE;UNSAFE;ALPHA prompt 4 true