[fix] Fixs HookUtils compile errors in Unity 2019 and 2020

main
walon 2024-10-24 15:43:35 +08:00
parent 162f21f6a5
commit 77517a9814
1 changed files with 2 additions and 2 deletions

View File

@ -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)