diff options
Diffstat (limited to 'Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp b/Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp index dbda183f6f..45e43a7f3d 100644 --- a/Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp +++ b/Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp @@ -34,6 +34,9 @@ #if defined(HAVE_WX) && HAVE_WX #include "DSPConfigDlgLLE.h" +#include "debugger/Debugger.h" +#include "Debugger/Debugger.h" // For the CDebugger class +CDebugger* m_frame = NULL; #endif PLUGIN_GLOBALS* globals = NULL; @@ -163,6 +166,21 @@ void DoState(unsigned char **ptr, int mode) void DllDebugger(HWND _hParent, bool Show) { +#if defined(HAVE_WX) && HAVE_WX + if (m_frame && Show) // if we have created it, let us show it again + { + m_frame->DoShow(); + } + else if (!m_frame && Show) + { + m_frame = new CDebugger(NULL); + m_frame->Show(); + } + else if (m_frame && !Show) + { + m_frame->DoHide(); + } +#endif } |
