From cb832f22989a0e92c1f68c3b0331f5cf3714dda2 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Fri, 11 Feb 2011 21:30:53 +0000 Subject: Make sure the audio dump directory exists when dumping audio. Otherwise a segmentation fault ensues after several panic alerts. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7135 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/AudioCommon/Src/AudioCommon.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/AudioCommon/Src/AudioCommon.cpp') diff --git a/Source/Core/AudioCommon/Src/AudioCommon.cpp b/Source/Core/AudioCommon/Src/AudioCommon.cpp index 043d07d151..22758c53b4 100644 --- a/Source/Core/AudioCommon/Src/AudioCommon.cpp +++ b/Source/Core/AudioCommon/Src/AudioCommon.cpp @@ -57,6 +57,7 @@ namespace AudioCommon if (ac_Config.m_DumpAudio) { char audio_file_name[255]; snprintf(audio_file_name, 255, "%saudiodump.wav", File::GetUserPath(D_DUMPAUDIO_IDX)); + File::CreateFullPath(audio_file_name); mixer->StartLogAudio(audio_file_name); //soundStream->StartLogAudio(audio_file_name); } -- cgit v1.2.3