Merge pull request from Ashafix/audiosync

added new command line parameter audiosync
This commit is contained in:
feos 2019-05-25 10:34:01 +03:00 committed by GitHub
commit 8efcda388f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions
BizHawk.Client.EmuHawk

View File

@ -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];

View File

@ -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