From 1eac26e63f152a50787e4ef71c47ad8b5da27d5b Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Mon, 31 Jan 2011 03:15:14 +0000 Subject: [PATCH] Fix nowx build. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7003 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/MainNoGUI.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Source/Core/DolphinWX/Src/MainNoGUI.cpp b/Source/Core/DolphinWX/Src/MainNoGUI.cpp index 1f8ef811b2..69fd158209 100644 --- a/Source/Core/DolphinWX/Src/MainNoGUI.cpp +++ b/Source/Core/DolphinWX/Src/MainNoGUI.cpp @@ -40,7 +40,7 @@ #include "PowerPC/PowerPC.h" #include "HW/Wiimote.h" -#include "PluginManager.h" +#include "VideoBackendBase.h" #include "ConfigManager.h" #include "LogManager.h" #include "BootManager.h" @@ -76,7 +76,10 @@ void Host_UpdateMainFrame() void Host_UpdateBreakPointView(){} -bool Host_GetKeyState(int keycode){} +bool Host_GetKeyState(int keycode) +{ + return false; +} void Host_GetRenderWindowSize(int& x, int& y, int& width, int& height) { @@ -292,8 +295,9 @@ int main(int argc, char* argv[]) updateMainFrameEvent.Init(); LogManager::Init(); SConfig::Init(); - CPluginManager::Init(); - CPluginManager::GetInstance().ScanForPlugins(); + VideoBackend::PopulateList(); + VideoBackend::ActivateBackend(SConfig::GetInstance(). + m_LocalCoreStartupParameter.m_strVideoPlugin); WiimoteReal::LoadSettings(); // No use running the loop when booting fails @@ -337,7 +341,7 @@ int main(int argc, char* argv[]) updateMainFrameEvent.Shutdown(); WiimoteReal::Shutdown(); - CPluginManager::Shutdown(); + VideoBackend::ClearList(); SConfig::Shutdown(); LogManager::Shutdown();