mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-10 04:22:13 +10:00
Debugging & starting work on parsing manifest
This commit is contained in:
@ -11,7 +11,6 @@ use tauri::AppHandle;
|
||||
use crate::auth::generate_authorization_header;
|
||||
use crate::DB;
|
||||
use crate::db::DatabaseImpls;
|
||||
use crate::downloads::manifest::Manifest;
|
||||
|
||||
#[tauri::command]
|
||||
fn download_game(app: AppHandle, game_id: String) -> Result<String, String>{
|
||||
|
||||
@ -109,7 +109,7 @@ impl GameDownload {
|
||||
return Err(GameDownloadError::StatusError(response.status().as_u16()));
|
||||
}
|
||||
|
||||
info!("{:?}", response.text().await.unwrap());
|
||||
info!("{}", response.text().await.unwrap());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@ -1,3 +1,11 @@
|
||||
pub(crate) struct Manifest {
|
||||
|
||||
}
|
||||
pub(crate) struct DropManifest {
|
||||
|
||||
}
|
||||
pub struct DropChunk {
|
||||
permissions: usize,
|
||||
ids: Vec<String>,
|
||||
checksums: Vec<String>,
|
||||
lengths: Vec<String>
|
||||
}
|
||||
|
||||
type Manifest = (DropManifest, DropChunk);
|
||||
Reference in New Issue
Block a user