()
| 624 | static readonly byte[] StExePatched = { 0xC3, 0x90 }; // ret nop |
| 625 | |
| 626 | static string FindSteamToolsExe() |
| 627 | { |
| 628 | try |
| 629 | { |
| 630 | using var key = Registry.CurrentUser.OpenSubKey(@"Software\Valve\Steamtools"); |
| 631 | var raw = key?.GetValue("SteamPath") as string; |
| 632 | if (raw == null) return null; |
| 633 | var path = Path.Combine(raw.Replace('/', '\\'), "SteamTools.exe"); |
| 634 | return File.Exists(path) ? path : null; |
| 635 | } |
| 636 | catch { return null; } |
| 637 | } |
| 638 | |
| 639 | void KillSteamTools() |
| 640 | { |
nothing calls this directly
no outgoing calls
no test coverage detected