add some plumbing for a PJM importer
This commit is contained in:
parent
1202305a47
commit
60ed815b68
|
@ -181,6 +181,7 @@
|
||||||
<Compile Include="movie\conversions\MovieConversionExtensions.cs" />
|
<Compile Include="movie\conversions\MovieConversionExtensions.cs" />
|
||||||
<Compile Include="movie\HeaderKeys.cs" />
|
<Compile Include="movie\HeaderKeys.cs" />
|
||||||
<Compile Include="movie\import\MovieImport.cs" />
|
<Compile Include="movie\import\MovieImport.cs" />
|
||||||
|
<Compile Include="movie\import\PJMImport.cs" />
|
||||||
<Compile Include="movie\interfaces\ILogEntryGenerator.cs" />
|
<Compile Include="movie\interfaces\ILogEntryGenerator.cs" />
|
||||||
<Compile Include="movie\interfaces\IMovie.cs" />
|
<Compile Include="movie\interfaces\IMovie.cs" />
|
||||||
<Compile Include="movie\interfaces\IMovieController.cs" />
|
<Compile Include="movie\interfaces\IMovieController.cs" />
|
||||||
|
|
|
@ -69,11 +69,17 @@ namespace BizHawk.Client.Common
|
||||||
// Attempt to import another type of movie file into a movie object.
|
// Attempt to import another type of movie file into a movie object.
|
||||||
public static Bk2Movie ImportFile(string path, out string errorMsg, out string warningMsg)
|
public static Bk2Movie ImportFile(string path, out string errorMsg, out string warningMsg)
|
||||||
{
|
{
|
||||||
BkmMovie m = new BkmMovie();
|
|
||||||
errorMsg = string.Empty;
|
errorMsg = string.Empty;
|
||||||
warningMsg = string.Empty;
|
warningMsg = string.Empty;
|
||||||
|
|
||||||
string ext = path != null ? Path.GetExtension(path).ToUpper() : string.Empty;
|
string ext = path != null ? Path.GetExtension(path).ToUpper() : string.Empty;
|
||||||
|
|
||||||
|
if (ext == ".PJM")
|
||||||
|
{
|
||||||
|
return PJMImport.Import(path, out errorMsg, out warningMsg);
|
||||||
|
}
|
||||||
|
|
||||||
|
BkmMovie m = new BkmMovie();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
switch (ext)
|
switch (ext)
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace BizHawk.Client.Common
|
||||||
|
{
|
||||||
|
public static class PJMImport
|
||||||
|
{
|
||||||
|
public static Bk2Movie Import(string path, out string errorMsg, out string warningMsg)
|
||||||
|
{
|
||||||
|
errorMsg = string.Empty;
|
||||||
|
warningMsg = string.Empty;
|
||||||
|
return new Bk2Movie();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue