From e5130fefb87aaa98eafd25cc6f18317169f00d01 Mon Sep 17 00:00:00 2001 From: OctoSpacc Date: Sun, 17 Dec 2023 00:24:56 +0100 Subject: [PATCH] Switch 2023-12-16-mario-kart-ds to dedicated NDS emu --- _posts/2023-12-16-mario-kart-ds.md | 2 ++ assets/js/software-embed.js | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/_posts/2023-12-16-mario-kart-ds.md b/_posts/2023-12-16-mario-kart-ds.md index fd14e69..08d573e 100644 --- a/_posts/2023-12-16-mario-kart-ds.md +++ b/_posts/2023-12-16-mario-kart-ds.md @@ -17,7 +17,9 @@ author: "octobot" software_data: platform : nds core : desmume + backend : standalone rom_index : MARIOKARTDS-A39J01.nds + rom_url : https://octospacc.gitlab.io/Web-Archives-Misc/Repo/DeSmuME/#RomUrl=https://octospacc.gitlab.io/ROMs-Archive-Misc/MARIOKARTDS-A39J01.nds release : region : Japan source : official diff --git a/assets/js/software-embed.js b/assets/js/software-embed.js index 0220c0f..2b869af 100644 --- a/assets/js/software-embed.js +++ b/assets/js/software-embed.js @@ -27,7 +27,19 @@ document.body.appendChild(scriptElement); break; case 'standalone': - thisElement.outerHTML = ``; + var frameUrl = ''; + if (platform === 'nds' || core === 'desmume') { + frameUrl = `https://octospacc.gitlab.io/Web-Archives-Misc/Repo/DeSmuME/#RomUrl=${romUrl}`; + } + else if (platform === 'dos') { + frameUrl = `https://gamingshitposting.github.io/ext-bin-1/dos.zone/${data.rom_index}/index.html`; + } + thisElement.outerHTML = ` + + `; break; } })(); \ No newline at end of file