launch

Function launch 

Source
pub async fn launch(
    upload_id: u64,
    game_folder: &Path,
    heuristics_info: Option<(&GamePlatform, &Game)>,
    upload_executable: Option<&Path>,
    wrapper: &[String],
    game_arguments: &[String],
    launch_start_callback: impl FnOnce(&Path, &str),
) -> Result<(), String>
Expand description

Launchs an installed upload

§Arguments

  • upload_id - The ID of upload which will be launched

  • game_folder - The folder where the game uploads are placed

  • heuristics_info - Some info required to guess which file is the upload executable

  • upload_executable - Instead of heuristics_info, provide the path to the upload executable file

  • wrapper - A list of a wrapper and its options to run the game with

  • game_arguments - A list of arguments to launch the upload executable with

  • launch_start_callback - A callback triggered just before the upload executable runs, providing information about what is about to be executed.

§Returns

An error if something goes wrong