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:
YoshiRulz 2021-01-15 22:31:03 +10:00
parent 85f24ca486
commit dd39e95be6
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ namespace BizHawk.Client.Common
{
writer.WriteLine("[Input]");
var lg = new Bk2LogEntryGenerator(LogKey, Session.MovieController);
var lg = LogGeneratorInstance(Session.MovieController);
writer.WriteLine(lg.GenerateLogKey());
foreach (var record in Log)

View File

@ -57,7 +57,7 @@ namespace BizHawk.Client.Common
public ILogEntryGenerator LogGeneratorInstance(IController source)
{
return new Bk2LogEntryGenerator(Emulator.SystemId, source);
return new Bk2LogEntryGenerator(Emulator?.SystemId ?? SystemID, source);
}
public int FrameCount => Log.Count;