diff options
| author | Glenn Rice <glennricster@gmail.com> | 2011-02-11 21:30:53 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2011-02-11 21:30:53 +0000 |
| commit | cb832f22989a0e92c1f68c3b0331f5cf3714dda2 (patch) | |
| tree | 23ad8aa65909ee85dee7dbed5ab1e6d8b09b3f47 /Source/Core/AudioCommon | |
| parent | 6cbaa360a1e8f3695a716173ac32e99a97d75fd4 (diff) | |
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
Diffstat (limited to 'Source/Core/AudioCommon')
| -rw-r--r-- | Source/Core/AudioCommon/Src/AudioCommon.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |
