API optimisations (#343)

* feat: api optimisation

* feat: emulator rename
This commit is contained in:
DecDuck
2026-02-06 23:12:03 +11:00
committed by GitHub
parent 276f4f6389
commit 9b0f9994f6
20 changed files with 246 additions and 134 deletions
+3 -4
View File
@@ -75,7 +75,6 @@
<div v-if="versionGuesses" class="flex flex-col gap-4">
<!-- setup executable -->
<div class="bg-zinc-800 p-4 rounded-xl relative flex flex-col gap-y-2">
<div>
<label class="block text-sm font-medium leading-6 text-zinc-100">{{
@@ -155,7 +154,7 @@
</Switch>
</SwitchGroup>
<div
v-if="type === GameType.Redist"
v-if="type === GameType.Dependency"
class="absolute inset-0 bg-zinc-900/50"
/>
</div>
@@ -215,7 +214,7 @@
v-model="versionSettings.launches[launchIdx]"
:version-guesses="versionGuesses"
:needs-name="true"
:allow-executor="true"
:allow-emulator="true"
:type="type"
/>
</DisclosurePanel>
@@ -361,7 +360,7 @@ const currentlySelectedVersion = ref(-1);
const versionSettings = ref<Omit<typeof ImportVersion.infer, "version" | "id">>(
{
delta: false,
onlySetup: type === GameType.Redist,
onlySetup: type === GameType.Dependency,
launches: [],
setups: [],
requiredContent: [],
+6 -6
View File
@@ -369,15 +369,15 @@ const importModes: {
title: "Game",
description: "Games are shown in store, and are discoverable.",
},
Executor: {
title: "Executor",
Emulator: {
title: "Emulator",
description:
"Executors are used to launch games. Mainly emulators or wrappers.",
"Emulators are used to launch other games, wrapping them in another executable.",
},
Redist: {
title: "Redistributable",
Dependency: {
title: "Dependency",
description:
"Additional content that must be downloaded and installed before running the game.",
"Dependencies are setup-only files that get installed before the game is launched.",
},
};