feat(downloads): Pausing and resuming game downloads

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-11-09 19:55:36 +11:00
parent f6f8186d5a
commit da1f39c061
9 changed files with 159 additions and 83 deletions
+5 -6
View File
@@ -11,10 +11,7 @@ use crate::db::DatabaseImpls;
use crate::downloads::download_agent::GameDownloadAgent;
use auth::{auth_initiate, generate_authorization_header, recieve_handshake};
use db::{DatabaseInterface, DATA_ROOT_DIR};
use downloads::download_commands::{
get_game_download_progress, queue_game_download, start_game_downloads,
stop_specific_game_download,
};
use downloads::download_commands::*;
use env_logger::Env;
use http::{header::*, response::Builder as ResponseBuilder};
use library::{fetch_game, fetch_library, Game};
@@ -122,8 +119,10 @@ pub fn run() {
// Downloads
queue_game_download,
start_game_downloads,
stop_specific_game_download,
get_game_download_progress
cancel_specific_game_download,
get_game_download_progress,
resume_game_download,
pause_game_download
])
.plugin(tauri_plugin_shell::init())
.setup(|app| {