movie importers - import the core header key on systems that we check for core when loading the movie
This commit is contained in:
parent
f0f8cd3171
commit
6eb9fa9b51
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Text;
|
||||
using BizHawk.Common.BufferExtensions;
|
||||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Emulation.Cores.Nintendo.NES;
|
||||
|
||||
namespace BizHawk.Client.Common.movie.import
|
||||
|
@ -16,6 +17,9 @@ namespace BizHawk.Client.Common.movie.import
|
|||
|
||||
protected override void RunImport()
|
||||
{
|
||||
var neshawkName = ((CoreAttribute)Attribute.GetCustomAttribute(typeof(NES), typeof(CoreAttribute))).CoreName;
|
||||
Result.Movie.HeaderEntries[HeaderKeys.CORE] = neshawkName;
|
||||
|
||||
using var r = new BinaryReader(SourceFile.Open(FileMode.Open, FileAccess.Read));
|
||||
var signature = new string(r.ReadChars(4));
|
||||
if (signature != "FCM\x1A")
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
using BizHawk.Common;
|
||||
using BizHawk.Common.BufferExtensions;
|
||||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Emulation.Cores.Nintendo.NES;
|
||||
|
||||
namespace BizHawk.Client.Common
|
||||
|
@ -13,6 +14,8 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
protected override void RunImport()
|
||||
{
|
||||
var neshawkName = ((CoreAttribute)Attribute.GetCustomAttribute(typeof(NES), typeof(CoreAttribute))).CoreName;
|
||||
Result.Movie.HeaderEntries[HeaderKeys.CORE] = neshawkName;
|
||||
var emulator = "FCEUX";
|
||||
var platform = "NES"; // TODO: FDS?
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System.IO;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BizHawk.Common;
|
||||
|
@ -16,6 +17,9 @@ namespace BizHawk.Client.Common.movie.import
|
|||
private LibsnesControllerDeck _deck;
|
||||
protected override void RunImport()
|
||||
{
|
||||
var bsnesName = ((CoreAttribute)Attribute.GetCustomAttribute(typeof(LibsnesCore), typeof(CoreAttribute))).CoreName;
|
||||
Result.Movie.HeaderEntries[HeaderKeys.CORE] = bsnesName;
|
||||
|
||||
var hf = new HawkFile(SourceFile.FullName);
|
||||
|
||||
// .LSMV movies are .zip files containing data files.
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
using System.IO;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Emulation.Cores.Nintendo.SNES;
|
||||
|
||||
namespace BizHawk.Client.Common.movie.import
|
||||
|
@ -14,6 +16,9 @@ namespace BizHawk.Client.Common.movie.import
|
|||
|
||||
protected override void RunImport()
|
||||
{
|
||||
var bsnesName = ((CoreAttribute)Attribute.GetCustomAttribute(typeof(LibsnesCore), typeof(CoreAttribute))).CoreName;
|
||||
Result.Movie.HeaderEntries[HeaderKeys.CORE] = bsnesName;
|
||||
|
||||
using var fs = SourceFile.Open(FileMode.Open, FileAccess.Read);
|
||||
using var r = new BinaryReader(fs);
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System.IO;
|
||||
using System;
|
||||
using System.IO;
|
||||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Emulation.Cores.Nintendo.GBA;
|
||||
using BizHawk.Emulation.Cores.Nintendo.GBHawk;
|
||||
|
@ -111,6 +112,8 @@ namespace BizHawk.Client.Common.movie.import
|
|||
if (isGBA)
|
||||
{
|
||||
platform = "GBA";
|
||||
var mGBAName = ((CoreAttribute)Attribute.GetCustomAttribute(typeof(MGBAHawk), typeof(CoreAttribute))).CoreName;
|
||||
Result.Movie.HeaderEntries[HeaderKeys.CORE] = mGBAName;
|
||||
}
|
||||
|
||||
if (isGBC)
|
||||
|
|
Loading…
Reference in New Issue