Tastudio - When creating a savestate-anchored movie from an existing movie, copy the previous input into VerificationLog.txt
This commit is contained in:
parent
900ce76a3b
commit
01909dfb98
|
@ -141,9 +141,11 @@ namespace BizHawk.Client.Common.MovieConversionExtensions
|
|||
tas.TasStateManager.Clear();
|
||||
tas.ClearLagLog();
|
||||
|
||||
tas.CopyLog(old.GetLogEntries());
|
||||
tas.DeleteLogBefore(frame);
|
||||
|
||||
var entries = old.GetLogEntries();
|
||||
|
||||
tas.CopyLog(entries.Skip(frame));
|
||||
tas.CopyVerificationLog(entries.Take(frame));
|
||||
|
||||
tas.HeaderEntries.Clear();
|
||||
foreach (var kvp in old.HeaderEntries)
|
||||
{
|
||||
|
|
|
@ -321,7 +321,7 @@ namespace BizHawk.Client.Common
|
|||
}
|
||||
}
|
||||
|
||||
public void CopyLog(List<string> log)
|
||||
public void CopyLog(IEnumerable<string> log)
|
||||
{
|
||||
_log.Clear();
|
||||
foreach(var entry in log)
|
||||
|
@ -330,6 +330,15 @@ namespace BizHawk.Client.Common
|
|||
}
|
||||
}
|
||||
|
||||
public void CopyVerificationLog(IEnumerable<string> log)
|
||||
{
|
||||
VerificationLog.Clear();
|
||||
foreach (var entry in log)
|
||||
{
|
||||
VerificationLog.Add(entry);
|
||||
}
|
||||
}
|
||||
|
||||
public List<string> GetLogEntries()
|
||||
{
|
||||
return _log;
|
||||
|
|
Loading…
Reference in New Issue