Move PathManager and SavestateManager to Client.Common, also remove the dependency for System.Web in PathManager by doing a more logical way of getting the executing assembly path

This commit is contained in:
adelikat 2013-10-25 16:00:34 +00:00
parent 360ff31a54
commit 3e429736d5
5 changed files with 6 additions and 11 deletions

View File

@ -100,6 +100,7 @@
<Compile Include="movie\MultitrackRecording.cs" />
<Compile Include="movie\Subtitle.cs" />
<Compile Include="movie\SubtitleList.cs" />
<Compile Include="PathManager.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RecentFiles.cs" />
<Compile Include="helpers\StringHelpers.cs" />

View File

@ -3,17 +3,13 @@ using System.Linq;
using System.IO;
using System.Reflection;
using BizHawk.Client.Common;
namespace BizHawk.MultiClient
namespace BizHawk.Client.Common
{
public static class PathManager
{
public static string GetExeDirectoryAbsolute()
{
var uri = new Uri(Assembly.GetEntryAssembly().GetName().CodeBase);
string module = uri.LocalPath + System.Web.HttpUtility.UrlDecode(uri.Fragment);
return Path.GetDirectoryName(module);
return AppDomain.CurrentDomain.BaseDirectory;
}
/// <summary>

View File

@ -1,8 +1,6 @@
using System.IO;
using BizHawk.Client.Common;
namespace BizHawk.MultiClient
namespace BizHawk.Client.Common
{
class SavestateManager
{

View File

@ -3,6 +3,8 @@ using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using BizHawk.Client.Common;
namespace BizHawk.MultiClient
{
/// <summary>

View File

@ -84,7 +84,6 @@
</Reference>
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Numerics" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
@ -232,7 +231,6 @@
<Compile Include="config\PathInfo.Designer.cs">
<DependentUpon>PathInfo.cs</DependentUpon>
</Compile>
<Compile Include="config\PathManager.cs" />
<Compile Include="config\RewindConfig.cs">
<SubType>Form</SubType>
</Compile>