Skip to content

Commit

Permalink
Changed: Logic to determine current DLL path, given strange report of…
Browse files Browse the repository at this point in the history
… failure on user machine.
  • Loading branch information
Sewer56 committed Mar 3, 2024
1 parent 9480596 commit 181896f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Source/Reloaded.Assembler/Assembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,7 @@ private string GetFasmDLLPath()
/// <summary>
/// Gets the directory of the currently executing assembly.
/// </summary>
private string GetExecutingDLLDirectory()
{
string codeBase = Assembly.GetExecutingAssembly().CodeBase;
UriBuilder uri = new UriBuilder(codeBase);
string path = Uri.UnescapeDataString(uri.Path);
return Path.GetDirectoryName(path);
}
private string GetExecutingDLLDirectory() => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

/// <summary>
/// Attempts to allocate the memory to store the text to be supplied to FASM assembler.
Expand Down

0 comments on commit 181896f

Please sign in to comment.