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