Fixed the DSP LLE debugger, it also automatically shows the disassembly on image load.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2998 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2009-04-18 19:06:47 +00:00
parent ab5354d644
commit 5f0ac1db68
4 changed files with 17 additions and 12 deletions

View File

@ -162,8 +162,13 @@ void DoState(unsigned char **ptr, int mode)
void DllDebugger(HWND _hParent, bool Show)
{
#if defined(HAVE_WX) && HAVE_WX
DSPDebuggerLLE *debugger = new DSPDebuggerLLE(NULL);
debugger->Show();
if(!m_DebuggerFrame)
m_DebuggerFrame = new DSPDebuggerLLE(NULL);
if(Show)
m_DebuggerFrame->Show();
else
m_DebuggerFrame->Hide();
#endif
}
@ -181,7 +186,8 @@ THREAD_RETURN dsp_thread(void* lpParameter)
void DSP_DebugBreak()
{
#if defined(HAVE_WX) && HAVE_WX
m_DebuggerFrame->DebugBreak();
if(m_DebuggerFrame)
m_DebuggerFrame->DebugBreak();
#endif
}
@ -233,6 +239,11 @@ void Initialize(void *init)
g_hDSPThread = new Common::Thread(dsp_thread, NULL);
}
soundStream = AudioCommon::InitSoundStream();
#if defined(HAVE_WX) && HAVE_WX
if(m_DebuggerFrame)
m_DebuggerFrame->Refresh();
#endif
}
void DSP_StopSoundStream()