From 998866322d0d1d3466f4d4f4e6b333bb189dc9bb Mon Sep 17 00:00:00 2001 From: Jimmy Dansbo Date: Fri, 11 Oct 2024 19:27:31 +0200 Subject: [PATCH] Ensure correct CPU type can be selected in manifest.json as well. --- webassembly/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webassembly/main.js b/webassembly/main.js index d236591..dfc1905 100644 --- a/webassembly/main.js +++ b/webassembly/main.js @@ -339,8 +339,11 @@ function extractManifestFromBuffer(zip) { } if (manifestObject.cpu) { console.log('Found CPU type: '+manifestObject.cpu); - if (manifestObject.cpu == 'c816') + if (manifestObject.cpu == 'c816') { emuArguments.push('-c816'); + } elseif (manifestObject.cpu == 'c02') { + emuArguments.push('c02'); + } } if (manifestObject.mhz) { console.log('Found mhz variable: '+manifestObject.mhz);