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