Debugging & starting work on parsing manifest

This commit is contained in:
quexeky
2024-10-21 21:23:08 +11:00
parent d21b1d2857
commit 89d2814c06
3 changed files with 12 additions and 5 deletions

View File

@ -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>{

View File

@ -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(())
}

View File

@ -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);