diff --git a/frontend/src/console/views/Game.vue b/frontend/src/console/views/Game.vue index 23bab2a32..d0cde1ac2 100644 --- a/frontend/src/console/views/Game.vue +++ b/frontend/src/console/views/Game.vue @@ -14,6 +14,7 @@ import type { InputAction } from "@/console/input/actions"; import { ROUTES } from "@/plugins/router"; import { getSupportedEJSCores } from "@/utils"; import storeRoms from "@/stores/roms"; +import { getMissingCoverImage, getUnmatchedCoverImage } from "@/utils/covers"; type FocusZone = | "play" @@ -61,13 +62,10 @@ const screenshotUrls = computed(() => { return rom.value?.merged_screenshots || []; }); -// Cover URL with fallbacks for background/poster (prefer local resources first) -const coverUrl = computed( - () => - rom.value?.path_cover_large || - rom.value?.path_cover_small || - rom.value?.url_cover || - "", +const fallbackCoverImage = computed(() => + rom.value?.igdb_id || rom.value?.moby_id || rom.value?.ss_id + ? getMissingCoverImage(rom.value?.name || rom.value?.slug || "") + : getUnmatchedCoverImage(rom.value?.name || rom.value?.slug || ""), ); function openDescription() { @@ -455,7 +453,7 @@ onUnmounted(() => { v-else-if="playerState === 'unsupported'" class="m-auto text-red-400 p-4" > - This platform is not supported in the web player yet. + This platform is not yet supported in the web player @@ -468,8 +466,8 @@ onUnmounted(() => {