diff --git a/Native/_CUESDK.cs b/Native/_CUESDK.cs index 256c7ea..c6a18de 100644 --- a/Native/_CUESDK.cs +++ b/Native/_CUESDK.cs @@ -36,6 +36,8 @@ namespace CUE.NET.Native { if (_dllHandle != IntPtr.Zero) return; + LoadedArchitecture = LoadedArchitecture = Environment.Is64BitProcess ? "x64" : "x86"; + // HACK: Load library at runtime to support both, x86 and x64 with one managed dll List possiblePathList = Environment.Is64BitProcess ? CueSDK.PossibleX64NativePaths : CueSDK.PossibleX86NativePaths; string dllPath = null;