mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2026-11-10 20:46:24 +00:00
Added indicator which architecture is used to the SDK-Wrapper
This commit is contained in:
1 parent
ed6cd0ca3e
commit
0b5c9ef188
3 files changed
+5
-1
No files matched your search
+3
-1
@@ -10,10 +10,12 @@ namespace CUE.NET.Native
|
||||
{
|
||||
#region Libary Management
|
||||
|
||||
internal static string LoadedArchitecture { get; private set; }
|
||||
|
||||
static _CUESDK()
|
||||
{
|
||||
// HACK: Load library at runtime to support both, x86 and x64 with one managed dll
|
||||
LoadLibrary((Environment.Is64BitProcess ? "x64" : "x86") + "/CUESDK_2013.dll");
|
||||
LoadLibrary((LoadedArchitecture = Environment.Is64BitProcess ? "x64" : "x86") + "/CUESDK_2013.dll");
|
||||
}
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
|
||||
Reference in new issue
Block a user