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

Method DeployEmbeddedPayload

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

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

GetExpectedCachePathMethod · 0.80
GetSteamVersionMethod · 0.45
TryInstallMethod · 0.45

Tested by

no test coverage detected