()
| 777 | } |
| 778 | |
| 779 | string DeployEmbeddedPayload() |
| 780 | { |
| 781 | try |
| 782 | { |
| 783 | var version = SteamDetector.GetSteamVersion(_steamPath); |
| 784 | long buildToUse; |
| 785 | if (version == null) |
| 786 | { |
| 787 | Log(" Could not determine Steam version, deploying newest embedded payload"); |
| 788 | buildToUse = SteamDetector.ExpectedSteamVersion; |
| 789 | } |
| 790 | else |
| 791 | { |
| 792 | buildToUse = version.Value; |
| 793 | } |
| 794 | |
| 795 | if (!EmbeddedBundledPayload.TryInstall(_steamPath, buildToUse, Log)) |
| 796 | return null; |
| 797 | |
| 798 | return Fingerprint.GetExpectedCachePath(_steamPath); |
| 799 | } |
| 800 | catch (Exception ex) |
| 801 | { |
| 802 | Log($" Deploy failed: {ex.Message}"); |
| 803 | return null; |
| 804 | } |
| 805 | } |
| 806 | |
| 807 | void Backup(string path) |
| 808 | { |
nothing calls this directly
no test coverage detected