From fbaf9659958cd6d8c0df6b0c217f6e60f57f9d77 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 31 Jan 2011 01:28:32 +0000 Subject: Eliminated the plugin interface. Merged DX9/DX11/OGL video plugins into Dolphin. It could still use a lot of cleanup. Lots of things are still named "plugin". Software renderer is temporarily disabled until it gets some namespaces. I only updated vs08/10, Linux/OSX builds are broken. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6996 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | 41 ++++++++++------------ 1 file changed, 18 insertions(+), 23 deletions(-) (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp') diff --git a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp index ea4b7dd758..1913e72f56 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp @@ -58,7 +58,6 @@ #include "PowerPC/JitCommon/JitBase.h" #include "PowerPC/JitCommon/JitCache.h" // for ClearCache() -#include "PluginManager.h" #include "ConfigManager.h" extern "C" // Bitmaps @@ -542,15 +541,11 @@ void CCodeWindow::ToggleSoundWindow(bool bShow) void CCodeWindow::ToggleDLLWindow(int Id, bool bShow) { std::string DLLName; - int PluginType; + //int PluginType; wxPanel *Win; switch(Id) { - case IDM_VIDEOWINDOW: - DLLName = SConfig::GetInstance().m_LocalCoreStartupParameter.m_strVideoPlugin.c_str(); - PluginType = PLUGIN_TYPE_VIDEO; - break; default: PanicAlert("CCodeWindow::ToggleDLLWindow called with invalid Id"); return; @@ -559,26 +554,26 @@ void CCodeWindow::ToggleDLLWindow(int Id, bool bShow) if (bShow) { // Show window - Win = (wxPanel *)CPluginManager::GetInstance().OpenDebug(Parent, - DLLName.c_str(), (PLUGIN_TYPE)PluginType, bShow); - - if (Win) - { - Win->Show(); - Win->SetId(Id); - Parent->DoAddPage(Win, - iNbAffiliation[Id - IDM_LOGWINDOW], - Parent->bFloatWindow[Id - IDM_LOGWINDOW]); - } + //Win = (wxPanel *)CPluginManager::GetInstance().OpenDebug(Parent, + // DLLName.c_str(), (PLUGIN_TYPE)PluginType, bShow); + + //if (Win) + //{ + // Win->Show(); + // Win->SetId(Id); + // Parent->DoAddPage(Win, + // iNbAffiliation[Id - IDM_LOGWINDOW], + // Parent->bFloatWindow[Id - IDM_LOGWINDOW]); + //} } else { - Win = (wxPanel *)FindWindowById(Id); - if (Win) - { - Parent->DoRemovePage(Win, false); - Win->Destroy(); - } + //Win = (wxPanel *)FindWindowById(Id); + //if (Win) + //{ + // Parent->DoRemovePage(Win, false); + // Win->Destroy(); + //} } GetMenuBar()->FindItem(Id)->Check(bShow && !!Win); } -- cgit v1.2.3