mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-24 15:47:27 +00:00
Remove framework gating
This commit is contained in:
@@ -7,11 +7,7 @@ namespace SabreTools.Models.XZP
|
||||
|
||||
public uint NameOffset { get; set; }
|
||||
|
||||
#if NET48
|
||||
public string Name { get; set; }
|
||||
#else
|
||||
public string? Name { get; set; }
|
||||
#endif
|
||||
|
||||
public uint TimeCreated { get; set; }
|
||||
}
|
||||
|
||||
24
XZP/File.cs
24
XZP/File.cs
@@ -9,55 +9,31 @@ namespace SabreTools.Models.XZP
|
||||
/// <summary>
|
||||
/// Header data
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public Header Header { get; set; }
|
||||
#else
|
||||
public Header? Header { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Directory entries data
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public DirectoryEntry[] DirectoryEntries { get; set; }
|
||||
#else
|
||||
public DirectoryEntry?[]? DirectoryEntries { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Preload directory entries data
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public DirectoryEntry[] PreloadDirectoryEntries { get; set; }
|
||||
#else
|
||||
public DirectoryEntry?[]? PreloadDirectoryEntries { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Preload directory mappings data
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public DirectoryMapping[] PreloadDirectoryMappings { get; set; }
|
||||
#else
|
||||
public DirectoryMapping?[]? PreloadDirectoryMappings { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Directory items data
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public DirectoryItem[] DirectoryItems { get; set; }
|
||||
#else
|
||||
public DirectoryItem?[]? DirectoryItems { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Footer data
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public Footer Footer { get; set; }
|
||||
#else
|
||||
public Footer? Footer { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,10 +5,6 @@ namespace SabreTools.Models.XZP
|
||||
{
|
||||
public uint FileLength { get; set; }
|
||||
|
||||
#if NET48
|
||||
public string Signature { get; set; }
|
||||
#else
|
||||
public string? Signature { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,7 @@ namespace SabreTools.Models.XZP
|
||||
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/XZPFile.h"/>
|
||||
public sealed class Header
|
||||
{
|
||||
#if NET48
|
||||
public string Signature { get; set; }
|
||||
#else
|
||||
public string? Signature { get; set; }
|
||||
#endif
|
||||
|
||||
public uint Version { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user