1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-26 10:49:17 +00:00

check for saveState() on MAME

This commit is contained in:
Steven Hugg 2019-09-30 08:26:05 -05:00
parent 6753d9bf40
commit 2a41b6b1a1
2 changed files with 3 additions and 3 deletions

View File

@ -248,7 +248,7 @@ function refreshWindowList() {
// add other tools // add other tools
separate = true; separate = true;
if (platform.disassemble) { if (platform.disassemble && platform.saveState) {
addWindowItem("#disasm", "Disassembly", () => { addWindowItem("#disasm", "Disassembly", () => {
return new Views.DisassemblerView(); return new Views.DisassemblerView();
}); });

View File

@ -500,8 +500,8 @@ export class ListingView extends DisassemblerView implements ProjectView {
refresh(moveCursor: boolean) { refresh(moveCursor: boolean) {
this.refreshListing(); this.refreshListing();
if (!this.assemblyfile) return; // TODO? if (!this.assemblyfile || !platform.saveState) return;
var state = lastDebugState || platform.saveState(); // TODO? var state = lastDebugState || platform.saveState();
var pc = state.c ? (state.c.EPC || state.c.PC) : 0; var pc = state.c ? (state.c.EPC || state.c.PC) : 0;
var asmtext = this.assemblyfile.text; var asmtext = this.assemblyfile.text;
var disasmview = this.getDisasmView(); var disasmview = this.getDisasmView();