Skip to main content

install_replay

Function install_replay 

Source
pub fn install_replay(
    storage: &GameStorage,
    replay_name: String,
) -> InstallHandle
Expand description

Starts the installation of a replay from online storage

This function:

  1. Fetches the replay snapshot JSON from storage
  2. Parses the manifest to find the .dat file
  3. Downloads the .dat file content
  4. Determines the correct installation path based on replay name
  5. Writes the file and analyzes it

§Arguments

  • storage - GameStorage instance for fetching and writing
  • replay_name - Name of the replay to install (e.g., “AlpineEasy_1‘23’’45_PlayerName”)

§Returns

An InstallHandle containing a receiver for installation events