diff --git a/index.html b/index.html
index 69a3acda..02b48877 100644
--- a/index.html
+++ b/index.html
@@ -304,7 +304,7 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
←↑↓→ Joystick
Space Button
-
+
←↑↓→ Joypad
Space Button A
Shift Button B
diff --git a/package-lock.json b/package-lock.json
index c5ec4b27..f8f221cf 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3015,6 +3015,12 @@
"extsprintf": "^1.2.0"
}
},
+ "vgm-parser": {
+ "version": "0.6.2",
+ "resolved": "https://registry.npmjs.org/vgm-parser/-/vgm-parser-0.6.2.tgz",
+ "integrity": "sha512-YenDnwDe9jwTz5MWRQhQwqgSbZ14y2MOiUXBzrDkwSE8T/JX0ugZAMxq6mTXSwz7wSMsof5b1rNL0/i+p5efvw==",
+ "dev": true
+ },
"w3c-hr-time": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz",
diff --git a/package.json b/package.json
index f2f85b4a..e0b7248a 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,8 @@
"pngjs": "^3.4.0",
"rgbquant": "^1.1.2",
"typescript": "^3.7.4",
- "typescript-formatter": "^7.2.2"
+ "typescript-formatter": "^7.2.2",
+ "vgm-parser": "^0.6.2"
},
"main": "main.js",
"directories": {
diff --git a/src/common/baseplatform.ts b/src/common/baseplatform.ts
index 2a7d99f6..e4282d2b 100644
--- a/src/common/baseplatform.ts
+++ b/src/common/baseplatform.ts
@@ -1057,6 +1057,17 @@ export abstract class BaseMachinePlatform extends BaseDebugPl
pause() {
this.timer.stop();
this.audio && this.audio.stop();
+ if (this.probeRecorder) {
+ this.probeRecorder.singleFrame = true;
+ }
+ }
+ // so probe views stick around
+ runToVsync() {
+ if (this.probeRecorder) {
+ this.probeRecorder.reset();
+ this.probeRecorder.singleFrame = false;
+ }
+ super.runToVsync();
}
// TODO: reset target clock counter
@@ -1237,7 +1248,7 @@ export class WASMMachine implements Machine {
var cpf = 19656; // TODO: pal, const
if (trap) {
for (i=0; i