From 181896f3ddc8a2cf4c916de9e05566e59f74d26b Mon Sep 17 00:00:00 2001 From: sewer56lol Date: Sun, 3 Mar 2024 04:42:46 +0000 Subject: [PATCH] Changed: Logic to determine current DLL path, given strange report of failure on user machine. --- Source/Reloaded.Assembler/Assembler.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Source/Reloaded.Assembler/Assembler.cs b/Source/Reloaded.Assembler/Assembler.cs index 22849a7..71140a7 100644 --- a/Source/Reloaded.Assembler/Assembler.cs +++ b/Source/Reloaded.Assembler/Assembler.cs @@ -184,13 +184,7 @@ private string GetFasmDLLPath() /// /// Gets the directory of the currently executing assembly. /// - 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); /// /// Attempts to allocate the memory to store the text to be supplied to FASM assembler.