[fix] Fixs HookUtils compile errors in Unity 2019 and 2020
parent
162f21f6a5
commit
77517a9814
|
|
@ -116,8 +116,8 @@ namespace MonoHook
|
||||||
|
|
||||||
static void SetupFlushICacheFunc()
|
static void SetupFlushICacheFunc()
|
||||||
{
|
{
|
||||||
string processorType = SystemInfo.processorType;
|
string processorType = SystemInfo.processorType.ToLowerInvariant();
|
||||||
if (processorType.Contains("Intel", StringComparison.InvariantCultureIgnoreCase) || processorType.Contains("AMD", StringComparison.InvariantCultureIgnoreCase))
|
if (processorType.Contains("intel") || processorType.Contains("amd"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (IntPtr.Size == 4)
|
if (IntPtr.Size == 4)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue