mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
Port Main.DSP to MainSettings
While trying to work on adding audiodump support for CLI, I was alerted that it was important to first try moving the DSP configs to the new config before continuing, as that makes it substantially easier to write clean code to add such a feature. This commit aims to allow for Dolphin to only rely on the new config for DSP-related settings.
This commit is contained in:
parent
023eb0b702
commit
8ea6bef98f
26 changed files with 132 additions and 205 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "Common/MsgHandler.h"
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Common/Swap.h"
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
|
||||
constexpr size_t WaveFileWriter::BUFFER_SIZE;
|
||||
|
@ -30,7 +31,7 @@ bool WaveFileWriter::Start(const std::string& filename, unsigned int HLESampleRa
|
|||
// Ask to delete file
|
||||
if (File::Exists(filename))
|
||||
{
|
||||
if (SConfig::GetInstance().m_DumpAudioSilent ||
|
||||
if (Config::Get(Config::MAIN_DUMP_AUDIO_SILENT) ||
|
||||
AskYesNoFmtT("Delete the existing file '{0}'?", filename))
|
||||
{
|
||||
File::Delete(filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue