mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Windows AVIDump: support "silent" frame dumping
When enabled, the silent option will avoid popping up dialog boxes for overwrite confirmation or codec selection. The codec selection defaults to uncompressed RGB. This is required for FifoCI on Windows which needs to drive Dolphin from the command line exclusively.
This commit is contained in:
@ -88,8 +88,11 @@ bool AVIDump::CreateFile()
|
||||
// Ask to delete file
|
||||
if (File::Exists(movie_file_name))
|
||||
{
|
||||
if (AskYesNoT("Delete the existing file '%s'?", movie_file_name.c_str()))
|
||||
if (SConfig::GetInstance().m_DumpFramesSilent ||
|
||||
AskYesNoT("Delete the existing file '%s'?", movie_file_name.c_str()))
|
||||
{
|
||||
File::Delete(movie_file_name);
|
||||
}
|
||||
}
|
||||
|
||||
AVIFileInit();
|
||||
@ -291,7 +294,16 @@ bool AVIDump::SetCompressionOptions()
|
||||
memset(&s_options, 0, sizeof(s_options));
|
||||
s_array_options[0] = &s_options;
|
||||
|
||||
return (AVISaveOptions(s_emu_wnd, 0, 1, &s_stream, s_array_options) != 0);
|
||||
if (SConfig::GetInstance().m_DumpFramesSilent)
|
||||
{
|
||||
s_options.fccType = streamtypeVIDEO;
|
||||
s_options.fccHandler = mmioFOURCC('D', 'I', 'B', ' '); // Uncompressed
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return (AVISaveOptions(s_emu_wnd, 0, 1, &s_stream, s_array_options) != 0);
|
||||
}
|
||||
}
|
||||
|
||||
bool AVIDump::SetVideoFormat()
|
||||
|
Reference in New Issue
Block a user