Skip to content

Commit 77517a9

Browse files
committed
[fix] Fixs HookUtils compile errors in Unity 2019 and 2020
1 parent 162f21f commit 77517a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Editor/3rds/UnityHook/HookUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ public static string HexToString(void* ptr, int size, int offset = 0)
116116

117117
static void SetupFlushICacheFunc()
118118
{
119-
string processorType = SystemInfo.processorType;
120-
if (processorType.Contains("Intel", StringComparison.InvariantCultureIgnoreCase) || processorType.Contains("AMD", StringComparison.InvariantCultureIgnoreCase))
119+
string processorType = SystemInfo.processorType.ToLowerInvariant();
120+
if (processorType.Contains("intel") || processorType.Contains("amd"))
121121
return;
122122

123123
if (IntPtr.Size == 4)

0 commit comments

Comments
 (0)