Fix debugger throwing exceptions on opened on a core that does not implement IDisassemblable

This commit is contained in:
adelikat 2017-04-23 11:42:26 -05:00
parent 30aa86cd7e
commit cc5ff74689
2 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,10 @@ namespace BizHawk.Client.EmuHawk
public void UpdatePC()
{
currentDisassemblerAddress = (uint)PCRegister.Value;
if (CanDisassemble)
{
currentDisassemblerAddress = (uint)PCRegister.Value;
}
}
private void UpdateDisassembler()

View File

@ -28,6 +28,7 @@ namespace BizHawk.Client.EmuHawk
#region Implementation checking
// TODO: be cachey with checks that depend on catching exceptions
private bool CanUseMemoryCallbacks
{
get