1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-29 14:51: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;
}
/*
saveState() {
this.luareset();
this.luacall('mamedbg.printstate()');
return this.preserveState();
}
*/
initlua() {
if (!this.initluavars) {
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) {
this.initlua();
this.luacall('print(">>>v"); print(mem:read_u8(' + a + '))');
return parseInt(this.console_vars.v[0]);
}
// DEBUGGING SUPPORT
clearDebug() {
this.onBreakpointHit = null;
}
@ -1021,6 +1018,7 @@ export abstract class BaseMAMEPlatform {
else
return null; // TODO
}
*/
}
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() {
if (ga && measureTimeLoad) {
var measureTimeBuild = new Date();
ga('send', 'timing', 'ui', 'load', (measureTimeLoad.getTime() - measureTimeStart.getTime()));
ga('send', 'timing', 'worker', 'build', (measureTimeBuild.getTime() - measureTimeLoad.getTime()));
ga('send', 'timing', 'load', platform_id, (measureTimeLoad.getTime() - measureTimeStart.getTime()));
ga('send', 'timing', 'build', platform_id, (measureTimeBuild.getTime() - measureTimeLoad.getTime()));
measureTimeLoad = null; // only measure once
}
}