From 3d70ea1bcba7fce4cfe635f833baf2056ec13e14 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Mon, 9 Feb 2009 23:20:28 +0000 Subject: [PATCH] PadSimple: Removed double definition of __Log() Core: Readded FreeVideo and FreeDSP for _WIN32. As I have explained thoroughly these are needed in Windows. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2192 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/Core.cpp | 6 ++++++ Source/Plugins/Plugin_PadSimple/Src/GUI/ConfigDlg.cpp | 2 +- Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp | 4 +--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/Src/Core.cpp b/Source/Core/Core/Src/Core.cpp index f49d7eb3d7..b16f3d98b1 100644 --- a/Source/Core/Core/Src/Core.cpp +++ b/Source/Core/Core/Src/Core.cpp @@ -321,6 +321,9 @@ THREAD_RETURN EmuThread(void *pArg) VideoInitialize.bWii = _CoreParameter.bWii; VideoInitialize.bUseDualCore = _CoreParameter.bUseDualCore; // Needed for Stop and Start + #ifdef _WIN32 + Plugins.FreeVideo(); + #endif Plugins.GetVideo()->Initialize(&VideoInitialize); // Call the dll // Under linux, this is an X11 Display, not an HWND! @@ -342,6 +345,9 @@ THREAD_RETURN EmuThread(void *pArg) dspInit.pEmulatorState = (int *)&PowerPC::state; dspInit.bWii = _CoreParameter.bWii; // Needed for Stop and Start + #ifdef _WIN32 + Plugins.FreeDSP(); + #endif Plugins.GetDSP()->Initialize((void *)&dspInit); // Load and Init PadPlugin diff --git a/Source/Plugins/Plugin_PadSimple/Src/GUI/ConfigDlg.cpp b/Source/Plugins/Plugin_PadSimple/Src/GUI/ConfigDlg.cpp index 82d2f66915..b2b6211462 100644 --- a/Source/Plugins/Plugin_PadSimple/Src/GUI/ConfigDlg.cpp +++ b/Source/Plugins/Plugin_PadSimple/Src/GUI/ConfigDlg.cpp @@ -198,7 +198,7 @@ void ConfigDialog::CreateGUIControls() m_CheckRecording[i]->SetValue(pad[i].bRecording); m_CheckPlayback[i]->SetValue(pad[i].bPlayback); - // Only enable these options for pad 3 + // Only enable these options for pad 0 m_CheckRecording[i]->Enable(false); m_CheckRecording[0]->Enable(true); m_CheckPlayback[i]->Enable(false); m_CheckPlayback[0]->Enable(true); m_BtnSaveRecording[i]->Enable(false); m_BtnSaveRecording[0]->Enable(true); diff --git a/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp b/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp index 2c36f80942..74c07b6841 100644 --- a/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp +++ b/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp @@ -85,6 +85,7 @@ bool g_EmulatorRunning = false; //////////////////////////////// +// TODO: fix this dirty hack to stop missing symbols void __Log(int log, const char *format, ...) {} void __Logv(int log, int v, const char *format, ...) {} @@ -120,9 +121,6 @@ const SPADStatus& PlayRecord() } return(recordBuffer[count++]); } -// TODO: fix this dirty hack to stop missing symbols -void __Log(int log, const char *format, ...) {} -void __Logv(int log, int v, const char *format, ...) {} void LoadRecord() {