Progress on downloads. Currently working on parsing functions to be run asynchronously

This commit is contained in:
quexeky
2024-10-18 07:45:09 +11:00
parent 3923acf780
commit 496c6a57e3
7 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,22 @@
/* GENERAL OUTLINE
When downloading any game, the following details must be provided to the server:
- Game ID
- User token
- TBC
The steps to then download a game are as follows:
1. User requests
*/
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>{
todo!()
}

View File

@ -0,0 +1,3 @@
pub(crate) struct Manifest {
}

View File

@ -0,0 +1,2 @@
mod downloads;
mod manifest;