mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Add Silent Audio Dumping INI Option
This commit is contained in:
parent
358de1e2ee
commit
47b3a9c68e
3 changed files with 7 additions and 1 deletions
|
@ -11,6 +11,8 @@
|
|||
#include "Common/MsgHandler.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
#include "Core/ConfigManager.h"
|
||||
|
||||
constexpr size_t WaveFileWriter::BUFFER_SIZE;
|
||||
|
||||
WaveFileWriter::WaveFileWriter()
|
||||
|
@ -27,7 +29,8 @@ bool WaveFileWriter::Start(const std::string& filename, unsigned int HLESampleRa
|
|||
// Ask to delete file
|
||||
if (File::Exists(filename))
|
||||
{
|
||||
if (AskYesNoT("Delete the existing file '%s'?", filename.c_str()))
|
||||
if (SConfig::GetInstance().m_DumpAudioSilent ||
|
||||
AskYesNoT("Delete the existing file '%s'?", filename.c_str()))
|
||||
{
|
||||
File::Delete(filename);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue