30 |
bool notvalid = !IsValidPSX2Process(p.ProcessInfo.Id, out isDebug, out VTLB_RELEASE_OFFSET); |
bool notvalid = !IsValidPSX2Process(p.ProcessInfo.Id, out isDebug, out VTLB_RELEASE_OFFSET); |
31 |
if (notvalid) |
if (notvalid) |
32 |
{ |
{ |
33 |
logger.Debug.WriteLine(" Not Allowing process {0} to be added because it was filterd out", p.Name); |
logger.VerboseDebug.WriteLine(" Not Allowing process {0} to be added because it was filterd out", p.Name); |
34 |
} |
} |
35 |
else |
else |
36 |
{ |
{ |
37 |
logger.Debug.WriteLine(" Allowing process {0} to be added", p.Name); |
logger.VerboseDebug.WriteLine(" Allowing process {0} to be added", p.Name); |
38 |
} |
} |
39 |
return notvalid; |
return notvalid; |
40 |
} |
} |
86 |
r.Close(); |
r.Close(); |
87 |
if (!isExe) |
if (!isExe) |
88 |
{ |
{ |
89 |
logger.Debug.WriteLine(" Process: {0} is not a valid executable file", filename); |
logger.VerboseDebug.WriteLine(" Process: {0} is not a valid executable file", filename); |
90 |
isValid = false; |
isValid = false; |
91 |
} |
} |
92 |
else |
else |
98 |
if (found_string.ToLower().Contains(PCXS2_LOOKUP_MAGIC_001.ToLower()) && found_string.ToLower().Contains(PCXS2_LOOKUP_MAGIC_002.ToLower())) |
if (found_string.ToLower().Contains(PCXS2_LOOKUP_MAGIC_001.ToLower()) && found_string.ToLower().Contains(PCXS2_LOOKUP_MAGIC_002.ToLower())) |
99 |
{ |
{ |
100 |
isValid = true; |
isValid = true; |
101 |
logger.Debug.WriteLine(" Process: {0} found MAGIC LOOKUP {1} and {2}", filename, PCXS2_LOOKUP_MAGIC_001.ToLower(), PCXS2_LOOKUP_MAGIC_002.ToLower()); |
logger.VerboseDebug.WriteLine(" Process: {0} found MAGIC LOOKUP {1} and {2}", filename, PCXS2_LOOKUP_MAGIC_001.ToLower(), PCXS2_LOOKUP_MAGIC_002.ToLower()); |
102 |
} |
} |
103 |
sr.Close(); |
sr.Close(); |
104 |
|
|
110 |
if (found_string.ToLower().Contains("DebugBreak".ToLower())) |
if (found_string.ToLower().Contains("DebugBreak".ToLower())) |
111 |
{ |
{ |
112 |
isDebug = true; |
isDebug = true; |
113 |
logger.Debug.WriteLine(" Process: {0} found DebugBreak", filename); |
logger.VerboseDebug.WriteLine(" Process: {0} found DebugBreak", filename); |
114 |
} |
} |
115 |
sr.Close(); |
sr.Close(); |
116 |
} |
} |