Codestyle fixes
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Flax.Build.Platforms
|
||||
public static readonly AndroidSdk Instance = new AndroidSdk();
|
||||
|
||||
/// <inheritdoc />
|
||||
public override TargetPlatform[] Platforms => new []
|
||||
public override TargetPlatform[] Platforms => new[]
|
||||
{
|
||||
TargetPlatform.Windows,
|
||||
TargetPlatform.Linux,
|
||||
|
||||
@@ -77,15 +77,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