make GetExeDirectoryAbsolute more robust (handle # in paths)
This commit is contained in:
parent
f4bd799484
commit
d8c0e3b27e
|
@ -79,6 +79,7 @@
|
|||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.DirectoryServices" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
|
|
|
@ -11,7 +11,8 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
public static string GetExeDirectoryAbsolute()
|
||||
{
|
||||
string module = new Uri(Assembly.GetEntryAssembly().GetName().CodeBase).LocalPath;
|
||||
var uri = new Uri(Assembly.GetEntryAssembly().GetName().CodeBase);
|
||||
string module = uri.LocalPath + System.Web.HttpUtility.UrlDecode(uri.Fragment);
|
||||
return Path.GetDirectoryName(module);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue