2023-04-17 14:05:27 -07:00
|
|
|
use crate::api::Result;
|
|
|
|
|
use daedalus::minecraft::VersionManifest;
|
|
|
|
|
use daedalus::modded::Manifest;
|
|
|
|
|
|
|
|
|
|
/// Gets the game versions from daedalus
|
|
|
|
|
#[tauri::command]
|
|
|
|
|
pub async fn metadata_get_game_versions() -> Result<VersionManifest> {
|
|
|
|
|
Ok(theseus::metadata::get_minecraft_versions().await?)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Gets the fabric versions from daedalus
|
|
|
|
|
#[tauri::command]
|
|
|
|
|
pub async fn metadata_get_fabric_versions() -> Result<Manifest> {
|
|
|
|
|
Ok(theseus::metadata::get_fabric_versions().await?)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Gets the forge versions from daedalus
|
|
|
|
|
#[tauri::command]
|
|
|
|
|
pub async fn metadata_get_forge_versions() -> Result<Manifest> {
|
|
|
|
|
Ok(theseus::metadata::get_forge_versions().await?)
|
|
|
|
|
}
|
2023-05-11 18:11:15 -07:00
|
|
|
|
|
|
|
|
/// Gets the quilt versions from daedalus
|
|
|
|
|
#[tauri::command]
|
|
|
|
|
pub async fn metadata_get_quilt_versions() -> Result<Manifest> {
|
|
|
|
|
Ok(theseus::metadata::get_quilt_versions().await?)
|
|
|
|
|
}
|