-
+
{{
// eslint-disable-next-line @intlify/vue-i18n/no-raw-text
- "{executor}"
+ "{rom}"
}}
@@ -181,32 +181,32 @@
>
{{ $t("library.admin.import.version.platform") }}
-
+
- {{ $t("library.admin.launchRow.executorTitle") }}
+ {{ $t("library.admin.launchRow.emulatorTitle") }}
-
+
- {{ $t("library.admin.launchRow.noExecutorSelected") }}
+ {{ $t("library.admin.launchRow.noEmulatorSelected") }}
{{
- $t("library.admin.launchRow.executorSelect")
+ $t("library.admin.launchRow.emulatorSelect")
}}
-
+
{{ $t("library.admin.launchRow.autosuggestHint") }}
@@ -219,7 +219,7 @@
v-model="selectLaunchOpen"
class="-mt-2"
:filter-platform="launchConfiguration.platform"
- @select="(v) => (executor = v)"
+ @select="(v) => (emulator = v)"
/>
@@ -234,7 +234,7 @@ import {
} from "@headlessui/vue";
import { CheckIcon, ChevronUpDownIcon } from "@heroicons/vue/20/solid";
import { InformationCircleIcon, TrashIcon } from "@heroicons/vue/24/outline";
-import type { ExecutorLaunchObject } from "~/composables/frontend";
+import type { EmulatorLaunchObject } from "~/composables/frontend";
import type { GameType, Platform } from "~/prisma/client/enums";
import type { ImportVersion } from "~/server/api/v1/admin/import/version/index.post";
@@ -247,17 +247,17 @@ const launchConfiguration = defineModel<
name?: string;
}
>({ required: true });
-const _executorMetadata = ref
(undefined);
-const executor = computed({
+const _emulatorMetadata = ref(undefined);
+const emulator = computed({
get() {
- return _executorMetadata.value;
+ return _emulatorMetadata.value;
},
set(v) {
- _executorMetadata.value = v;
+ _emulatorMetadata.value = v;
if (v) {
- launchConfiguration.value.executorId = v.launchId;
+ launchConfiguration.value.emulatorId = v.launchId;
} else {
- launchConfiguration.value.executorId = undefined;
+ launchConfiguration.value.emulatorId = undefined;
}
},
});
@@ -265,9 +265,9 @@ const executor = computed({
function updatePlatform(v: Platform | undefined) {
if (!v) return;
launchConfiguration.value.platform = v;
- if (executor.value) {
- if (executor.value.platform !== v) {
- executor.value = undefined;
+ if (emulator.value) {
+ if (emulator.value.platform !== v) {
+ emulator.value = undefined;
}
}
}
@@ -275,11 +275,11 @@ function updatePlatform(v: Platform | undefined) {
const props = defineProps<{
versionGuesses: Array | undefined;
needsName: boolean;
- allowExecutor?: boolean;
+ allowEmulator?: boolean;
type?: GameType;
}>();
-if (props.type && props.type === "Executor")
+if (props.type && props.type === "Emulator")
launchConfiguration.value.suggestions ??= [];
const selectLaunchOpen = ref(false);
@@ -299,15 +299,15 @@ function updateLaunchCommand(command: string) {
if (autosetGuess) {
if (autosetGuess.type === "platform") {
launchConfiguration.value.platform = autosetGuess.platform;
- } else if (autosetGuess.type === "executor") {
- executor.value = {
- launchId: autosetGuess.executorId,
+ } else if (autosetGuess.type === "emulator") {
+ emulator.value = {
+ launchId: autosetGuess.emulatorId,
gameName: autosetGuess.gameName,
gameIcon: autosetGuess.icon,
versionName: autosetGuess.launchName,
launchName: autosetGuess.launchName,
platform: autosetGuess.platform,
- } satisfies ExecutorLaunchObject;
+ } satisfies EmulatorLaunchObject;
launchConfiguration.value.platform = autosetGuess.platform;
}
}
diff --git a/components/Modal/SelectLaunch.vue b/components/Modal/SelectLaunch.vue
index 37243733..185c4b3c 100644
--- a/components/Modal/SelectLaunch.vue
+++ b/components/Modal/SelectLaunch.vue
@@ -141,7 +141,7 @@