Tastudio - When creating a savestate-anchored movie from an existing movie, copy the previous input into VerificationLog.txt

This commit is contained in:
adelikat 2014-11-01 14:01:21 +00:00
parent 900ce76a3b
commit 01909dfb98
2 changed files with 15 additions and 4 deletions

View File

@ -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)
{

View File

@ -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;