Merge remote-tracking branch 'origin/master' into 1.8
# Conflicts: # Source/Editor/Utilities/EditorUtilities.cpp # Source/Editor/Utilities/EditorUtilities.h
This commit is contained in:
@@ -90,15 +90,15 @@ namespace Flax.Build.Platforms
|
||||
/// Returns true if running an x64 binary an arm64 host machine.
|
||||
/// </summary>
|
||||
public unsafe static bool GetProcessIsTranslated()
|
||||
{
|
||||
int ret = 0;
|
||||
ulong size = sizeof(int);
|
||||
if (sysctlbyname("sysctl.proc_translated", &ret, &size, null, 0) == -1)
|
||||
return false;
|
||||
return ret != 0;
|
||||
}
|
||||
{
|
||||
int ret = 0;
|
||||
ulong size = sizeof(int);
|
||||
if (sysctlbyname("sysctl.proc_translated", &ret, &size, null, 0) == -1)
|
||||
return false;
|
||||
return ret != 0;
|
||||
}
|
||||
|
||||
[DllImport("c")]
|
||||
private static unsafe extern int sysctlbyname(string name, void* oldp, ulong* oldlenp, void* newp, ulong newlen);
|
||||
private static unsafe extern int sysctlbyname(string name, void* oldp, ulong* oldlenp, void* newp, ulong newlen);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user