()
| 182 | } |
| 183 | |
| 184 | string FindCoreDll() |
| 185 | { |
| 186 | foreach (var name in HijackCandidates) |
| 187 | { |
| 188 | var path = Path.Combine(_steamPath, name); |
| 189 | if (!File.Exists(path)) continue; |
| 190 | |
| 191 | try |
| 192 | { |
| 193 | using var fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); |
| 194 | var buf = new byte[fs.Length]; |
| 195 | fs.ReadExactly(buf); |
| 196 | |
| 197 | if (Signatures.ScanForBytes(buf, 0, buf.Length, AesKey) >= 0) |
| 198 | return name; |
| 199 | } |
| 200 | catch (IOException) { } |
| 201 | } |
| 202 | return null; |
| 203 | } |
| 204 | |
| 205 | public bool HasCoreDll() => FindCoreDll() != null; |
| 206 |
nothing calls this directly
no test coverage detected