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

mame: removed broken debugging support for now

This commit is contained in:
Steven Hugg 2019-08-22 13:23:04 -04:00
parent c131cc1169
commit 67e57e0c67
2 changed files with 10 additions and 12 deletions

View File

@ -962,13 +962,6 @@ export abstract class BaseMAMEPlatform {
return state; return state;
} }
/*
saveState() {
this.luareset();
this.luacall('mamedbg.printstate()');
return this.preserveState();
}
*/
initlua() { initlua() {
if (!this.initluavars) { if (!this.initluavars) {
this.luacall(this.luadebugscript); this.luacall(this.luadebugscript);
@ -977,14 +970,18 @@ export abstract class BaseMAMEPlatform {
} }
} }
// DEBUGGING SUPPORT
/*
saveState() {
this.luareset();
this.luacall('mamedbg.printstate()');
return this.preserveState();
}
readAddress(a) { readAddress(a) {
this.initlua(); this.initlua();
this.luacall('print(">>>v"); print(mem:read_u8(' + a + '))'); this.luacall('print(">>>v"); print(mem:read_u8(' + a + '))');
return parseInt(this.console_vars.v[0]); return parseInt(this.console_vars.v[0]);
} }
// DEBUGGING SUPPORT
clearDebug() { clearDebug() {
this.onBreakpointHit = null; this.onBreakpointHit = null;
} }
@ -1021,6 +1018,7 @@ export abstract class BaseMAMEPlatform {
else else
return null; // TODO return null; // TODO
} }
*/
} }
export function dumpStackToString(platform:Platform, mem:Uint8Array|number[], start:number, end:number, sp:number, jsrop:number) : string { export function dumpStackToString(platform:Platform, mem:Uint8Array|number[], start:number, end:number, sp:number, jsrop:number) : string {

View File

@ -956,8 +956,8 @@ var measureTimeLoad : Date;
function measureBuildTime() { function measureBuildTime() {
if (ga && measureTimeLoad) { if (ga && measureTimeLoad) {
var measureTimeBuild = new Date(); var measureTimeBuild = new Date();
ga('send', 'timing', 'ui', 'load', (measureTimeLoad.getTime() - measureTimeStart.getTime())); ga('send', 'timing', 'load', platform_id, (measureTimeLoad.getTime() - measureTimeStart.getTime()));
ga('send', 'timing', 'worker', 'build', (measureTimeBuild.getTime() - measureTimeLoad.getTime())); ga('send', 'timing', 'build', platform_id, (measureTimeBuild.getTime() - measureTimeLoad.getTime()));
measureTimeLoad = null; // only measure once measureTimeLoad = null; // only measure once
} }
} }