chore: add patch stream selection

This commit is contained in:
2025-07-14 19:39:37 +02:00
parent b530dbf72f
commit 86033e2d6a
5 changed files with 74 additions and 4 deletions

View File

@@ -444,6 +444,7 @@ pub struct UpdateFile {
pub async fn get_ezpp_launcher_update_files(
folder: String,
update_url: String,
update_stream: String
) -> Result<(Vec<UpdateFile>, Vec<UpdateFile>), String> {
let osu_path = PathBuf::from(folder);
let client = Client::new();
@@ -451,6 +452,7 @@ pub async fn get_ezpp_launcher_update_files(
let update_files = client
.patch(update_url)
.header("User-Agent", "EZPPLauncher")
.query(&[("stream", update_stream)])
.send()
.await
.map_err(|e| e.to_string())?