Skip to content

Commit

Permalink
Ensure correct CPU type can be selected in manifest.json as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyDansbo committed Oct 11, 2024
1 parent ae8bdc6 commit 9988663
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webassembly/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9988663

Please sign in to comment.