diff --git a/Source/Core/Core/Src/ConfigManager.cpp b/Source/Core/Core/Src/ConfigManager.cpp index 483730e882..c3d41d8eed 100644 --- a/Source/Core/Core/Src/ConfigManager.cpp +++ b/Source/Core/Core/Src/ConfigManager.cpp @@ -140,7 +140,6 @@ void SConfig::SaveSettings() // Core ini.Set("Core", "HLE_BS2", m_LocalCoreStartupParameter.bHLE_BS2); - ini.Set("Core", "EnableOpenCL", m_LocalCoreStartupParameter.bEnableOpenCL); ini.Set("Core", "CPUCore", m_LocalCoreStartupParameter.iCPUCore); ini.Set("Core", "CPUThread", m_LocalCoreStartupParameter.bCPUThread); ini.Set("Core", "DSPThread", m_LocalCoreStartupParameter.bDSPThread); @@ -265,7 +264,6 @@ void SConfig::LoadSettings() // Core ini.Get("Core", "HLE_BS2", &m_LocalCoreStartupParameter.bHLE_BS2, false); - ini.Get("Core", "EnableOpenCL", &m_LocalCoreStartupParameter.bEnableOpenCL, false); ini.Get("Core", "CPUCore", &m_LocalCoreStartupParameter.iCPUCore, 1); ini.Get("Core", "DSPThread", &m_LocalCoreStartupParameter.bDSPThread, false); ini.Get("Core", "CPUThread", &m_LocalCoreStartupParameter.bCPUThread, true); diff --git a/Source/Core/Core/Src/CoreParameter.h b/Source/Core/Core/Src/CoreParameter.h index 10f27f1b0f..daa9e971fc 100644 --- a/Source/Core/Core/Src/CoreParameter.h +++ b/Source/Core/Core/Src/CoreParameter.h @@ -73,7 +73,6 @@ struct SCoreStartupParameter bool bNTSC; bool bNTSCJ; bool bHLE_BS2; - bool bEnableOpenCL; bool bUseFastMem; bool bLockThreads; bool bEnableCheats; diff --git a/Source/Core/DolphinWX/Src/ConfigMain.cpp b/Source/Core/DolphinWX/Src/ConfigMain.cpp index a545cc4fd1..3faf16045e 100644 --- a/Source/Core/DolphinWX/Src/ConfigMain.cpp +++ b/Source/Core/DolphinWX/Src/ConfigMain.cpp @@ -33,8 +33,6 @@ #include "Frame.h" #include "HotkeyDlg.h" -#include "OpenCL.h" - #ifdef __APPLE__ #include #endif @@ -67,9 +65,6 @@ EVT_CHOICE(ID_FRAMELIMIT, CConfigMain::CoreSettingsChanged) EVT_CHECKBOX(ID_FRAMELIMIT_USEFPSFORLIMITING, CConfigMain::CoreSettingsChanged) EVT_CHECKBOX(ID_ALWAYS_HLE_BS2, CConfigMain::CoreSettingsChanged) -#if defined(HAVE_OPENCL) && HAVE_OPENCL -EVT_CHECKBOX(ID_ENABLE_OPENCL, CConfigMain::CoreSettingsChanged) -#endif EVT_RADIOBOX(ID_CPUENGINE, CConfigMain::CoreSettingsChanged) EVT_CHECKBOX(ID_LOCKTHREADS, CConfigMain::CoreSettingsChanged) EVT_CHECKBOX(ID_DSPTHREAD, CConfigMain::CoreSettingsChanged) @@ -164,9 +159,6 @@ void CConfigMain::UpdateGUI() EnableCheats->Disable(); AlwaysHLE_BS2->Disable(); -#if defined(HAVE_OPENCL) && HAVE_OPENCL - EnableOpenCL->Disable(); -#endif CPUEngine->Disable(); LockThreads->Disable(); DSPThread->Disable(); @@ -272,9 +264,6 @@ void CConfigMain::InitializeGUIValues() // General - Advanced AlwaysHLE_BS2->SetValue(startup_params.bHLE_BS2); -#if defined(HAVE_OPENCL) && HAVE_OPENCL - EnableOpenCL->SetValue(startup_params.bEnableOpenCL); -#endif CPUEngine->SetSelection(startup_params.iCPUCore); LockThreads->SetValue(startup_params.bLockThreads); DSPThread->SetValue(startup_params.bDSPThread); @@ -345,9 +334,6 @@ void CConfigMain::InitializeGUITooltips() // General - Advanced DSPThread->SetToolTip(wxT("Run DSPLLE on a dedicated thread (not recommended).")); -#if defined(HAVE_OPENCL) && HAVE_OPENCL - EnableOpenCL->SetToolTip(wxT("Allow videocard to accelerate texture decoding.")); -#endif // Display - Display FullscreenResolution->SetToolTip(wxT("Select resolution for fullscreen mode")); @@ -418,9 +404,6 @@ void CConfigMain::CreateGUIControls() // Core Settings - Advanced sbAdvanced = new wxStaticBoxSizer(wxVERTICAL, GeneralPage, wxT("Advanced Settings")); AlwaysHLE_BS2 = new wxCheckBox(GeneralPage, ID_ALWAYS_HLE_BS2, wxT("Skip GC BIOS"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator); -#if defined(HAVE_OPENCL) && HAVE_OPENCL - EnableOpenCL = new wxCheckBox(GeneralPage, ID_ENABLE_OPENCL, wxT("Enable OpenCL"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator); -#endif CPUEngine = new wxRadioBox(GeneralPage, ID_CPUENGINE, wxT("CPU Emulator Engine"), wxDefaultPosition, wxDefaultSize, arrayStringFor_CPUEngine, 0, wxRA_SPECIFY_ROWS); LockThreads = new wxCheckBox(GeneralPage, ID_LOCKTHREADS, wxT("Lock threads to cores"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator); DSPThread = new wxCheckBox(GeneralPage, ID_DSPTHREAD, wxT("DSPLLE on thread"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator); @@ -436,9 +419,6 @@ void CConfigMain::CreateGUIControls() sbBasic->Add(sFramelimit, 0, wxALL | wxEXPAND, 5); sbAdvanced->Add(AlwaysHLE_BS2, 0, wxALL, 5); -#if defined(HAVE_OPENCL) && HAVE_OPENCL - sbAdvanced->Add(EnableOpenCL, 0, wxALL, 5); -#endif sbAdvanced->Add(CPUEngine, 0, wxALL, 5); sbAdvanced->Add(LockThreads, 0, wxALL, 5); sbAdvanced->Add(DSPThread, 0, wxALL, 5); @@ -815,11 +795,6 @@ void CConfigMain::CoreSettingsChanged(wxCommandEvent& event) case ID_ALWAYS_HLE_BS2: SConfig::GetInstance().m_LocalCoreStartupParameter.bHLE_BS2 = AlwaysHLE_BS2->IsChecked(); break; -#if defined(HAVE_OPENCL) && HAVE_OPENCL - case ID_ENABLE_OPENCL: - SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableOpenCL = EnableOpenCL->IsChecked(); - break; -#endif case ID_CPUENGINE: SConfig::GetInstance().m_LocalCoreStartupParameter.iCPUCore = CPUEngine->GetSelection(); if (main_frame->g_pCodeWindow) diff --git a/Source/Core/VideoCommon/Src/VideoConfig.cpp b/Source/Core/VideoCommon/Src/VideoConfig.cpp index 9307d79e5d..a9dd069a61 100644 --- a/Source/Core/VideoCommon/Src/VideoConfig.cpp +++ b/Source/Core/VideoCommon/Src/VideoConfig.cpp @@ -94,6 +94,8 @@ void VideoConfig::Load(const char *ini_file) iniFile.Get("Settings", "DisableTexturing", &bDisableTexturing, 0); iniFile.Get("Settings", "DisableFog", &bDisableFog, 0); + iniFile.Get("Settings", "EnableOpenCL", &bEnableOpenCL, false); + iniFile.Get("Enhancements", "ForceFiltering", &bForceFiltering, 0); iniFile.Get("Enhancements", "MaxAnisotropy", &iMaxAnisotropy, 1); // NOTE - this is x in (1 << x) iniFile.Get("Enhancements", "PostProcessingShader", &sPostProcessingShader, ""); @@ -117,7 +119,6 @@ void VideoConfig::Load(const char *ini_file) bool bTmp; iniFile.Get("Interface", "UsePanicHandlers", &bTmp, true); SetEnableAlert(bTmp); - iniFile.Get("Core", "EnableOpenCL", &bEnableOpenCL, false); } void VideoConfig::GameIniLoad(const char *ini_file) @@ -207,6 +208,8 @@ void VideoConfig::Save(const char *ini_file) iniFile.Set("Settings", "DisableTexturing", bDisableTexturing); iniFile.Set("Settings", "DstAlphaPass", bDstAlphaPass); iniFile.Set("Settings", "DisableFog", bDisableFog); + + iniFile.Set("Settings", "EnableOpenCL", bEnableOpenCL); iniFile.Set("Enhancements", "ForceFiltering", bForceFiltering); iniFile.Set("Enhancements", "MaxAnisotropy", iMaxAnisotropy);