[fix] 修复MonoHook判定processorType时没有正确处理某些CPU上processorType为全大写的情况(如有些机器上返回INTEL而不是Intel)
parent
64a6d26fa3
commit
925921c27c
|
@ -117,7 +117,7 @@ namespace MonoHook
|
||||||
static void SetupFlushICacheFunc()
|
static void SetupFlushICacheFunc()
|
||||||
{
|
{
|
||||||
string processorType = SystemInfo.processorType;
|
string processorType = SystemInfo.processorType;
|
||||||
if (processorType.Contains("Intel") || processorType.Contains("AMD"))
|
if (processorType.Contains("Intel", StringComparison.InvariantCultureIgnoreCase) || processorType.Contains("AMD", StringComparison.InvariantCultureIgnoreCase))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (IntPtr.Size == 4)
|
if (IntPtr.Size == 4)
|
||||||
|
|
Loading…
Reference in New Issue