From 8964e31f47912cb6ab9239a9a3a37271a051e915 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Tue, 29 Aug 2023 09:39:28 -0700 Subject: [PATCH] Fix reset --- docs/worker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/worker.js b/docs/worker.js index 512b81e..3d9ad17 100644 --- a/docs/worker.js +++ b/docs/worker.js @@ -29,6 +29,9 @@ onmessage = async function(e) { case 'runUntil': if (emulator) { emulator.runUntil(e.data.ticks); } break; + case 'setReset': + if (emulator) { emulator.setReset(e.data.ticks); } + break; case 'beginRewind': if (emulator) { emulator.beginRewind(); } break;