Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

947 B
Raw Blame
//! Grupo Games: importar o álbum do Switch, organizar clipes do PC e
//! consultar o ProtonDB. A lógica mora em `libreget_core::core::tools::games`.

use libreget_core::core::tools::games::{clip_organizer, protondb, switch_album};

use super::{err, progress};

#[tauri::command]
pub async fn tool_switch_album(
    app: tauri::AppHandle,
    opts: switch_album::SwitchOptions,
) -> Result<switch_album::SwitchResult, String> {
    switch_album::run(opts, progress(&app)).await.map_err(err)
}

#[tauri::command]
pub async fn tool_clip_organizer(
    app: tauri::AppHandle,
    opts: clip_organizer::ClipOptions,
) -> Result<clip_organizer::ClipResult, String> {
    clip_organizer::run(opts, progress(&app)).await.map_err(err)
}

#[tauri::command]
pub async fn tool_protondb(
    app: tauri::AppHandle,
    opts: protondb::ProtonOptions,
) -> Result<protondb::ProtonResult, String> {
    protondb::run(opts, progress(&app)).await.map_err(err)
}