mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Fixed #650
This commit is contained in:
parent
3e77c34bd5
commit
e1cf36aa3c
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
@ -26,7 +27,7 @@ namespace AssetStudio.PInvoke
|
|||||||
|
|
||||||
private static string GetDirectedDllDirectory()
|
private static string GetDirectedDllDirectory()
|
||||||
{
|
{
|
||||||
var localPath = new Uri(typeof(DllLoader).Assembly.CodeBase).LocalPath;
|
var localPath = Process.GetCurrentProcess().MainModule.FileName;
|
||||||
var localDir = Path.GetDirectoryName(localPath);
|
var localDir = Path.GetDirectoryName(localPath);
|
||||||
|
|
||||||
var subDir = Environment.Is64BitProcess ? "x64" : "x86";
|
var subDir = Environment.Is64BitProcess ? "x64" : "x86";
|
||||||
|
Loading…
Reference in New Issue
Block a user