Add metadata GV loader api (#84)

* Add metadata GV loader api

* Register commands

* fix lint + docs issue
This commit is contained in:
Geometrically authored and GitHub committed 2023-04-17 14:05:27 -07:00
1 parent 9f40640ed8
commit 19a4aa6689
6 files changed
+73 -1

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { invoke } from '@tauri-apps/api/tauri'
/// Gets the game versions from daedalus
// Returns a VersionManifest
export async function get_game_versions() {
return await invoke('metadata_get_game_versions')
}
// Gets the fabric versions from daedalus
// Returns Manifest
export async function get_fabric_versions() {
return await invoke('metadata_get_fabric_versions')
}
// Gets the forge versions from daedalus
// Returns Manifest
export async function get_forge_versions() {
return await invoke('metadata_get_forge_versions')
}