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