nitpick variable rename
This commit is contained in:
parent
d57e3d768a
commit
4f6699ff26
|
@ -31,7 +31,7 @@ namespace BizHawk.Client.Common
|
|||
Directory.CreateDirectory(directoryInfo.FullName);
|
||||
}
|
||||
|
||||
Write(backupName, backup: true);
|
||||
Write(backupName, isBackup: true);
|
||||
}
|
||||
|
||||
public virtual bool Load(bool preload)
|
||||
|
@ -161,7 +161,7 @@ namespace BizHawk.Client.Common
|
|||
return Load(true);
|
||||
}
|
||||
|
||||
protected virtual void Write(string fn, bool backup = false)
|
||||
protected virtual void Write(string fn, bool isBackup = false)
|
||||
{
|
||||
if (Emulator is Emulation.Cores.Nintendo.SubNESHawk.SubNESHawk subNes)
|
||||
{
|
||||
|
@ -211,7 +211,7 @@ namespace BizHawk.Client.Common
|
|||
bs.PutLump(BinaryStateLump.MovieSaveRam, (BinaryWriter bw) => bw.Write(SaveRam));
|
||||
}
|
||||
|
||||
if (!backup)
|
||||
if (!isBackup)
|
||||
{
|
||||
Changes = false;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace BizHawk.Client.Common
|
|||
public Func<string> ClientSettingsForSave { get; set; }
|
||||
public Action<string> GetClientSettingsOnLoad { get; set; }
|
||||
|
||||
protected override void Write(string fn, bool backup = false)
|
||||
protected override void Write(string fn, bool isBackup = false)
|
||||
{
|
||||
var file = new FileInfo(fn);
|
||||
if (file.Directory != null && !file.Directory.Exists)
|
||||
|
@ -66,12 +66,12 @@ namespace BizHawk.Client.Common
|
|||
|
||||
bs.PutLump(BinaryStateLump.Session, tw => tw.WriteLine(JsonConvert.SerializeObject(TasSession)));
|
||||
|
||||
if (TasStateManager.Settings.SaveStateHistory && !backup)
|
||||
if (TasStateManager.Settings.SaveStateHistory && !isBackup)
|
||||
{
|
||||
bs.PutLump(BinaryStateLump.StateHistory, bw => TasStateManager.Save(bw));
|
||||
}
|
||||
|
||||
if (!backup)
|
||||
if (!isBackup)
|
||||
{
|
||||
Changes = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue