mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 23:06:11 +00:00
feat: add April Fools emulation support toggle
This commit is contained in:
@@ -34,6 +34,11 @@ const isNDSRom = computed(() => {
|
||||
return isNintendoDSRom(props.rom);
|
||||
});
|
||||
|
||||
const isAprilFools = computed(() => {
|
||||
const today = new Date();
|
||||
return today.getMonth() === 3 && today.getDate() === 1;
|
||||
});
|
||||
|
||||
const isEmulationSupported = computed(() => {
|
||||
return (
|
||||
isEJSEmulationSupported(
|
||||
@@ -70,7 +75,7 @@ watch(menuOpen, (val) => {
|
||||
@click.prevent="romApi.downloadRom({ rom })"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col v-if="isEmulationSupported" class="d-flex">
|
||||
<v-col v-if="isEmulationSupported || isAprilFools" class="d-flex">
|
||||
<PlayBtn
|
||||
:rom="rom"
|
||||
icon-embedded
|
||||
|
||||
Reference in New Issue
Block a user