Fix #3679
This commit is contained in:
parent
9e5fb35f7a
commit
13dd04a026
|
@ -109,8 +109,15 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public void DeduceFormat(string commandline)
|
public void DeduceFormat(string commandline)
|
||||||
{
|
{
|
||||||
string formatKey = "-f ";
|
var splitCommandLine = commandline.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
Extension = commandline.Substring(commandline.IndexOf(formatKey) + formatKey.Length);
|
for (int index = 0; index < splitCommandLine.Length - 1; index++)
|
||||||
|
{
|
||||||
|
if (splitCommandLine[index] == "-f")
|
||||||
|
{
|
||||||
|
Extension = splitCommandLine[index + 1];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// are there other formats that don't match their file extensions?
|
// are there other formats that don't match their file extensions?
|
||||||
if (Extension == "matroska")
|
if (Extension == "matroska")
|
||||||
|
|
Loading…
Reference in New Issue