mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-25 18:33:11 +00:00
mame: removed broken debugging support for now
This commit is contained in:
parent
c131cc1169
commit
67e57e0c67
@ -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 {
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user