From 98423c7fa206d41a0a42546100833c9bd3b2945e Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Tue, 21 May 2019 13:54:51 -0400 Subject: [PATCH] prevent more button pushes before first loadROM(); use latest version menu item --- css/ui.css | 3 +++ index.html | 9 ++++++--- src/ui.ts | 7 ++++++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/css/ui.css b/css/ui.css index 29d388fe..be3c9b1d 100644 --- a/css/ui.css +++ b/css/ui.css @@ -539,3 +539,6 @@ div.asset_toolbar { .control-def { color: #ccc; } +.book-title { + font-size:14pt; +} diff --git a/index.html b/index.html index eaca1fb7..f924db06 100644 --- a/index.html +++ b/index.html @@ -159,6 +159,9 @@ if (window.location.host.endsWith('8bitworkshop.com')) { + @@ -188,19 +191,19 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
  • -   Making Games For The Atari 2600 +   Making Games For The Atari 2600
  • -   Making 8-bit Arcade Games in C +   Making 8-bit Arcade Games in C
  • -   Designing Video Game Hardware in Verilog +   Designing Video Game Hardware in Verilog
  • diff --git a/src/ui.ts b/src/ui.ts index c6d91084..43f48a34 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -1003,7 +1003,7 @@ function setDebugButtonState(btnid:string, btnstate:string) { function checkRunReady() { if (current_output == null) { - alertError("Can't resume emulation until ROM is successfully built."); + alertError("Can't do this until build successfully completes."); return false; } else return true; @@ -1070,11 +1070,13 @@ function togglePause() { } function singleStep() { + if (!checkRunReady()) return; setupBreakpoint("step"); platform.step(); } function singleFrameStep() { + if (!checkRunReady()) return; setupBreakpoint("tovsync"); platform.runToVsync(); } @@ -1101,11 +1103,13 @@ function runToCursor() { } function runUntilReturn() { + if (!checkRunReady()) return; setupBreakpoint("stepout"); platform.runUntilReturn(); } function runStepBackwards() { + if (!checkRunReady()) return; setupBreakpoint("stepback"); platform.stepBack(); } @@ -1118,6 +1122,7 @@ function clearBreakpoint() { } function resetAndDebug() { + if (!checkRunReady()) return; _disableRecording(); if (platform.setupDebug && platform.readAddress) { // TODO?? clearBreakpoint();