MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / FindCoreDll

Method FindCoreDll

ui/Services/Patching/Patcher.cs:184–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ScanForBytesMethod · 0.80

Tested by

no test coverage detected