mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
bc2549b24e
Stop allocating an entire shadow copy of the save file whenever we create a new savefile object from file. Prior commits added the clear SaveFileMetadata class to cleanly track the file path. Backups are copied from the original path.
26 lines
875 B
C#
26 lines
875 B
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Tracks information about modifications made to a <see cref="SaveFile"/>
|
|
/// </summary>
|
|
public sealed class SaveFileState
|
|
{
|
|
/// <summary>
|
|
/// Mutable value tracking if the save file has been changed. This is set manually by modifications, and not for all modifications.
|
|
/// </summary>
|
|
public bool Edited { get; set; }
|
|
|
|
/// <summary>
|
|
/// Toggle determining if the save file can be exported.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This is always true, unless the save file is a "fake" save file with blank data. Blank Save Files are essentially zeroed out buffers.
|
|
/// </remarks>
|
|
public readonly bool Exportable;
|
|
|
|
public SaveFileState(bool exportable = true)
|
|
{
|
|
Exportable = exportable;
|
|
}
|
|
}
|
|
}
|