Fix passing the wrong string as param for Bk2LogEntryGenerator ctor
fixes 0d2f01462
, see #2567
not sure if the fallback in LogGeneratorInstance is a good idea but it works
This commit is contained in:
parent
85f24ca486
commit
dd39e95be6
|
@ -14,7 +14,7 @@ namespace BizHawk.Client.Common
|
||||||
{
|
{
|
||||||
writer.WriteLine("[Input]");
|
writer.WriteLine("[Input]");
|
||||||
|
|
||||||
var lg = new Bk2LogEntryGenerator(LogKey, Session.MovieController);
|
var lg = LogGeneratorInstance(Session.MovieController);
|
||||||
writer.WriteLine(lg.GenerateLogKey());
|
writer.WriteLine(lg.GenerateLogKey());
|
||||||
|
|
||||||
foreach (var record in Log)
|
foreach (var record in Log)
|
||||||
|
|
|
@ -57,7 +57,7 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
public ILogEntryGenerator LogGeneratorInstance(IController source)
|
public ILogEntryGenerator LogGeneratorInstance(IController source)
|
||||||
{
|
{
|
||||||
return new Bk2LogEntryGenerator(Emulator.SystemId, source);
|
return new Bk2LogEntryGenerator(Emulator?.SystemId ?? SystemID, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int FrameCount => Log.Count;
|
public int FrameCount => Log.Count;
|
||||||
|
|
Loading…
Reference in New Issue