Implementing lighty launcher

This commit is contained in:
2026-04-03 20:58:08 +02:00
parent eed6069685
commit cd8c9c464a
5 changed files with 1081 additions and 47 deletions
+2 -6
View File
@@ -1,10 +1,5 @@
import { invoke } from "@tauri-apps/api/core";
import { GameVersion, LauncherSettings, Mod } from "./Types";
// --- Versions ---
export async function getVersions(): Promise<GameVersion[]> {
return await invoke("get_versions");
}
import { LauncherSettings, Mod } from "./Types";
// --- Mods ---
export async function getInstalledMods(versionId: string): Promise<Mod[]> {
@@ -75,5 +70,6 @@ export async function updateSettings(
export async function launchGame(
versionId: string,
): Promise<{ success: boolean; message: string }> {
await invoke("plugin:lighty-launcher|launch", { versionId });
return await invoke("launch_game", { versionId });
}