Skip to content

Commit

Permalink
Alpha 2.0-3
Browse files Browse the repository at this point in the history
  • Loading branch information
distrohelena committed Jun 21, 2016
1 parent 465a956 commit fbc81eb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Master/NucleusCoopTool/Nucleus.Coop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>TRACE;ALPHA</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
Expand Down
6 changes: 6 additions & 0 deletions Master/NucleusGaming/IO/Logging/LogManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;

Expand Down Expand Up @@ -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()
Expand Down
7 changes: 6 additions & 1 deletion Master/NucleusGaming/Managers/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -397,7 +402,7 @@ private void Initialize()
}
}
}
#endregion
#endregion

public void Play(IGameHandler handler)
{
Expand Down
2 changes: 1 addition & 1 deletion Master/NucleusGaming/Nucleus.Gaming.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;UNSAFE</DefineConstants>
<DefineConstants>TRACE;UNSAFE;ALPHA</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down

0 comments on commit fbc81eb

Please sign in to comment.