Merge pull request #1542 from Ashafix/audiosync
added new command line parameter audiosync
This commit is contained in:
commit
8efcda388f
BizHawk.Client.EmuHawk
|
@ -32,6 +32,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
public string mmf_filename = null;
|
||||
public string URL_get = null;
|
||||
public string URL_post = null;
|
||||
public bool? audiosync = null;
|
||||
|
||||
public void ParseArguments(string[] args)
|
||||
|
||||
|
@ -131,6 +132,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
URL_post = args[i].Substring(args[i].IndexOf('=') + 1);
|
||||
}
|
||||
else if (arg.StartsWith("--audiosync="))
|
||||
{
|
||||
audiosync = arg.Substring(arg.IndexOf('=') + 1) == "true";
|
||||
}
|
||||
else
|
||||
{
|
||||
cmdRom = args[i];
|
||||
|
|
|
@ -287,6 +287,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
LoadRomFromRecent(Global.Config.RecentRoms.MostRecent);
|
||||
}
|
||||
|
||||
if (argParser.audiosync.HasValue)
|
||||
{
|
||||
Global.Config.VideoWriterAudioSync = argParser.audiosync.Value;
|
||||
}
|
||||
|
||||
if (argParser.cmdMovie != null)
|
||||
{
|
||||
_supressSyncSettingsWarning = true; // We dont' want to be nagged if we are attempting to automate
|
||||
|
|
Loading…
Reference in New Issue