EmuVersion needs updating on saving, not loading; I made the wrong call of where to put this originally, but the interaction with PlayMovie slipped my mind. (#2202)
This commit is contained in:
parent
72993a3bd0
commit
c12d2fa570
|
@ -53,6 +53,12 @@ namespace BizHawk.Client.Common
|
||||||
protected virtual void Write(string fn, bool isBackup = false)
|
protected virtual void Write(string fn, bool isBackup = false)
|
||||||
{
|
{
|
||||||
SetCycleValues(); // We are pretending these only need to be set on save
|
SetCycleValues(); // We are pretending these only need to be set on save
|
||||||
|
// EmulatorVersion used to store the unchanging original emulator version.
|
||||||
|
if (!Header.ContainsKey(HeaderKeys.OriginalEmulatorVersion))
|
||||||
|
{
|
||||||
|
Header[HeaderKeys.OriginalEmulatorVersion] = Header[HeaderKeys.EmulatorVersion];
|
||||||
|
}
|
||||||
|
Header[HeaderKeys.EmulatorVersion] = VersionInfo.GetEmuVersion();
|
||||||
CreateDirectoryIfNotExists(fn);
|
CreateDirectoryIfNotExists(fn);
|
||||||
|
|
||||||
using var bs = new ZipStateSaver(fn, Session.Settings.MovieCompressionLevel);
|
using var bs = new ZipStateSaver(fn, Session.Settings.MovieCompressionLevel);
|
||||||
|
@ -166,12 +172,6 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// EmulatorVersion used to store the unchanging original emulator version.
|
|
||||||
if (!Header.ContainsKey(HeaderKeys.OriginalEmulatorVersion))
|
|
||||||
{
|
|
||||||
Header[HeaderKeys.OriginalEmulatorVersion] = Header[HeaderKeys.EmulatorVersion];
|
|
||||||
}
|
|
||||||
Header[HeaderKeys.EmulatorVersion] = VersionInfo.GetEmuVersion();
|
|
||||||
|
|
||||||
bl.GetLump(BinaryStateLump.Comments, false, delegate(TextReader tr)
|
bl.GetLump(BinaryStateLump.Comments, false, delegate(TextReader tr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue