psx tracer - probably fix crash due to disposed delegate (didnt test)
This commit is contained in:
parent
00d77a4253
commit
3435e5f70e
|
@ -12,7 +12,9 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
{
|
||||
public TraceBuffer Tracer { get; private set; }
|
||||
|
||||
public static string TraceHeader = "R3000A: PC, raw bytes, mnemonic, registers (GPRs, lo, hi, sr, cause, epc)";
|
||||
public static string TraceHeader = "R3000A: PC, raw bytes, mnemonic, registers (GPRs, lo, hi, sr, cause, epc)";
|
||||
|
||||
OctoshockDll.ShockCallback_Trace trace_cb;
|
||||
|
||||
public void ShockTraceCallback(IntPtr opaque, uint PC, uint inst, string dis)
|
||||
{
|
||||
|
@ -26,9 +28,9 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
string.Format("{0}:{1} ",
|
||||
r.Key,
|
||||
r.Value.Value.ToHexString(r.Value.BitSize / 4)));
|
||||
}
|
||||
|
||||
Tracer.Put(new TraceInfo
|
||||
}
|
||||
|
||||
Tracer.Put(new TraceInfo
|
||||
{
|
||||
Disassembly = string.Format("{0:X8}: {1:X8} {2}", PC, inst, dis.PadRight(20)),
|
||||
RegisterInfo = sb.ToString().Trim()
|
||||
|
|
|
@ -323,6 +323,8 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
SetMemoryDomains();
|
||||
InitMemCallbacks();
|
||||
|
||||
trace_cb = new OctoshockDll.ShockCallback_Trace(ShockTraceCallback);
|
||||
|
||||
//set a default framebuffer based on the first frame of emulation, to cut down on flickering or whatever
|
||||
//this is probably quixotic, but we have to pick something
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue