Refactored
This commit is contained in:
+6
-8
@@ -2,14 +2,12 @@ import { invoke } from "@tauri-apps/api/core";
|
||||
import { GameVersion, LauncherSettings, Mod } from "./types";
|
||||
|
||||
// --- Versions ---
|
||||
export async function getVersions(): Promise<GameVersion[]> {
|
||||
return [
|
||||
{
|
||||
id: "1.21.4",
|
||||
name: "Fabric 1.21.4",
|
||||
},
|
||||
];
|
||||
}
|
||||
export const versions: GameVersion[] = [
|
||||
{
|
||||
id: "1.21.4",
|
||||
name: "Fabric 1.21.4",
|
||||
},
|
||||
];
|
||||
|
||||
// --- Mods ---
|
||||
export async function getInstalledMods(versionId: string): Promise<Mod[]> {
|
||||
|
||||
Reference in New Issue
Block a user