diff --git a/PKHeX.Core/Editing/Saves/Editors/EventWork/Diff/EventWorkDiff.cs b/PKHeX.Core/Editing/Saves/Editors/EventWork/Diff/EventWorkDiff.cs index 6b9c4a230..c9279f020 100644 --- a/PKHeX.Core/Editing/Saves/Editors/EventWork/Diff/EventWorkDiff.cs +++ b/PKHeX.Core/Editing/Saves/Editors/EventWork/Diff/EventWorkDiff.cs @@ -9,7 +9,7 @@ namespace PKHeX.Core; /// /// Calculates differences in the Event Blocks between two . /// -public class EventBlockDiff : IEventWorkDiff where T : IEventFlagArray, IEventWorkArray where T2 : unmanaged, IEquatable +public sealed class EventBlockDiff : IEventWorkDiff where T : IEventFlagArray, IEventWorkArray where T2 : unmanaged, IEquatable { public List SetFlags { get; } = new(); public List ClearedFlags { get; } = new(); @@ -36,7 +36,7 @@ public EventBlockDiff(string f1, string f2) Diff(t1, t2); } - protected EventWorkDiffCompatibility SanityCheckSaveInfo(T s1, T s2) + private EventWorkDiffCompatibility SanityCheckSaveInfo(T s1, T s2) { if (s1.GetType() != s2.GetType()) return DifferentGameGroup; @@ -47,7 +47,7 @@ protected EventWorkDiffCompatibility SanityCheckSaveInfo(T s1, T s2) return Valid; } - protected void Diff(T s1, T s2) + private void Diff(T s1, T s2) { Message = SanityCheckSaveInfo(s1, s2); if (Message != Valid) diff --git a/PKHeX.Core/Editing/Saves/Editors/EventWork/Diff/IEventWorkDiff.cs b/PKHeX.Core/Editing/Saves/Editors/EventWork/Diff/IEventWorkDiff.cs index 61329df74..d52e7a3fe 100644 --- a/PKHeX.Core/Editing/Saves/Editors/EventWork/Diff/IEventWorkDiff.cs +++ b/PKHeX.Core/Editing/Saves/Editors/EventWork/Diff/IEventWorkDiff.cs @@ -10,4 +10,4 @@ public interface IEventWorkDiff List WorkDiff { get; } EventWorkDiffCompatibility Message { get; } IReadOnlyList Summarize(); -} \ No newline at end of file +} diff --git a/PKHeX.Core/Saves/SaveFileState.cs b/PKHeX.Core/Saves/SaveFileState.cs index ec87168d1..1d998ca47 100644 --- a/PKHeX.Core/Saves/SaveFileState.cs +++ b/PKHeX.Core/Saves/SaveFileState.cs @@ -3,18 +3,13 @@ /// /// Tracks information about modifications made to a /// -public sealed record SaveFileState(bool Exportable = true) +/// +/// Toggle determining if the save file can be exported. +/// +public sealed record SaveFileState(bool Exportable) { /// /// Mutable value tracking if the save file has been changed. This is set manually by modifications, and not for all modifications. /// public bool Edited { get; set; } - - /// - /// Toggle determining if the save file can be exported. - /// - /// - /// This is always true, unless the save file is a "fake" save file with blank data. Blank Save Files are essentially zeroed out buffers. - /// - public bool Exportable { get; } = Exportable; }