diff options
| author | rog <rdragoon@optonline.net> | 2012-12-22 18:25:52 -0500 |
|---|---|---|
| committer | rog <rdragoon@optonline.net> | 2012-12-22 18:25:52 -0500 |
| commit | d66dd970cd8fb554dec5dd5b8693a6940295db47 (patch) | |
| tree | f7f92530de4355af3b35271e0f4e5c84718fbe19 /Source/Core | |
| parent | 65f88567b54f60661b7e52d2212c61541ac685ec (diff) | |
Implement select audio backend CLI option.
Fixes issue 4920.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinWX/Src/Main.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index 8236513304..7cb2aa7f68 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -105,7 +105,7 @@ bool DolphinApp::OnInit() bool UseDebugger = false; bool UseLogger = false; bool selectVideoBackend = false; - //bool selectAudioEmulation = false; + bool selectAudioEmulation = false; wxString videoBackendName; wxString audioEmulationName; @@ -166,9 +166,8 @@ bool DolphinApp::OnInit() BatchMode = parser.Found(wxT("batch")); selectVideoBackend = parser.Found(wxT("video_backend"), &videoBackendName); - // TODO: This currently has no effect. Implement or delete. - //selectAudioEmulation = parser.Found(wxT("audio_emulation"), - // &audioEmulationName); + selectAudioEmulation = parser.Found(wxT("audio_emulation"), + &audioEmulationName); #endif // wxUSE_CMDLINE_PARSER #if defined _DEBUG && defined _WIN32 @@ -236,6 +235,12 @@ bool DolphinApp::OnInit() SConfig::GetInstance().m_LocalCoreStartupParameter.m_strVideoBackend = std::string(videoBackendName.mb_str()); + if (selectAudioEmulation) + if (audioEmulationName == "HLE") + SConfig::GetInstance().m_LocalCoreStartupParameter.bDSPHLE = true; + else if (audioEmulationName == "LLE") + SConfig::GetInstance().m_LocalCoreStartupParameter.bDSPHLE = false; + VideoBackend::ActivateBackend(SConfig::GetInstance().m_LocalCoreStartupParameter.m_strVideoBackend); // Enable the PNG image handler for screenshots |
