mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
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
This commit is contained in:
parent
6cbaa360a1
commit
cb832f2298
3 changed files with 6 additions and 6 deletions
|
@ -63,7 +63,9 @@
|
|||
#ifdef _WIN32
|
||||
#include "EmuWindow.h"
|
||||
#endif
|
||||
#if defined _WIN32 || defined HAVE_LIBAV
|
||||
#include "AVIDump.h"
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
#include <wx/image.h>
|
||||
|
@ -966,7 +968,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
|
|||
if (g_ActiveConfig.bDumpFrames && data)
|
||||
#ifdef _WIN32
|
||||
AVIDump::AddFrame((char *) data);
|
||||
#else
|
||||
#elif defined HAVE_LIBAV
|
||||
AVIDump::AddFrame(data);
|
||||
#endif
|
||||
Core::Callback_VideoCopiedToXFB(false);
|
||||
|
@ -984,7 +986,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
|
|||
if (g_ActiveConfig.bDumpFrames && data)
|
||||
#ifdef _WIN32
|
||||
AVIDump::AddFrame((char *) data);
|
||||
#else
|
||||
#elif defined HAVE_LIBAV
|
||||
AVIDump::AddFrame(data);
|
||||
#endif
|
||||
Core::Callback_VideoCopiedToXFB(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue