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:
parent
6753d9bf40
commit
2a41b6b1a1
@ -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();
|
||||||
});
|
});
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user