diff --git a/frontend/src/components/Details/Emulation.vue b/frontend/src/components/Details/Emulation.vue index 78648f3f0..d3ad51aa8 100644 --- a/frontend/src/components/Details/Emulation.vue +++ b/frontend/src/components/Details/Emulation.vue @@ -3,8 +3,7 @@ import type { SaveSchema, StateSchema } from "@/__generated__"; import type { Rom } from "@/stores/roms"; import { formatBytes } from "@/utils"; import Player from "@/views/Play/Player.vue"; -import { onMounted } from "vue"; -import { ref } from "vue"; +import { ref, onMounted } from "vue"; import { useDisplay } from "vuetify"; const props = defineProps<{ rom: Rom }>(); @@ -19,6 +18,9 @@ script.src = "/assets/emulatorjs/loader.js"; script.async = true; function onPlay() { + // let backgroundImage = `/assets/romm/resources/${props.rom.platform_slug}/${props.rom.name}/screenshots/states/${stateRef.value?.file_name}.jpg` + let backgroundImage = `/assets/romm/resources/${props.rom.path_cover_l}`; + window.EJS_backgroundImage = backgroundImage window.EJS_fullscreenOnLoaded = fullScreenOnPlay.value; document.body.appendChild(script); gameRunning.value = true; @@ -31,8 +33,8 @@ onMounted(() => {