Remove DatHeaderField enum

This commit is contained in:
Matt Nadareski
2024-03-10 21:03:53 -04:00
parent 49b7a5b273
commit 9735a178c5
7 changed files with 35 additions and 335 deletions

View File

@@ -736,170 +736,6 @@ namespace SabreTools.Core
#endregion
#region Fields
// TODO: This should move to Models like the rest
/// <summary>
/// List of valid field types within a DatHeader
/// </summary>
public enum DatHeaderField
{
/// <summary>
/// This is a fake flag that is used for filter only
/// </summary>
NULL = 0,
/// <remarks>Used in ClrMamePro, DOSCenter, Logiqx, and RomCenter</remarks>
[Mapping("author")]
Author,
/// <remarks>Used in Logiqx</remarks>
[Mapping("biosmode", "bios_mode")]
BiosMode,
/// <remarks>Used in Logiqx</remarks>
[Mapping("build")]
Build,
/// <remarks>Used with OfflineList</remarks>
[Mapping("canopen", "can_open")]
CanOpen,
/// <remarks>Used in ClrMamePro and Logiqx</remarks>
[Mapping("category")]
Category,
/// <remarks>Used in ClrMamePro, DOSCenter, Logiqx, and RomCenter</remarks>
[Mapping("comment")]
Comment,
/// <remarks>Used in ClrMamePro, DOSCenter, Logiqx, OpenMSX, and RomCenter</remarks>
[Mapping("date", "timestamp", "time_stamp")]
Date,
/// <remarks>Used in Logiqx and ListXML</remarks>
[Mapping("debug")]
Debug,
/// <remarks>Used in ClrMamePro, DOSCenter, ListXML, Logiqx, OpenMSX, RomCenter, Separated Value, and Software List</remarks>
[Mapping("desc", "description")]
Description,
/// <remarks>Used in ClrMamePro, Logiqx, and RomCenter</remarks>
[Mapping("email", "e_mail")]
Email,
/// <remarks>Used in AttractMode, OfflineList, and Separated Value</remarks>
[Mapping("file", "filename", "file_name")]
FileName,
/// <remarks>Used in ClrMamePro, Logiqx, and RomCenter</remarks>
[Mapping("forcemerging", "force_merging")]
ForceMerging,
/// <remarks>Used in Logiqx</remarks>
[Mapping("forcenodump", "force_nodump")]
ForceNodump,
/// <remarks>Used in ClrMamePro and Logiqx</remarks>
[Mapping("forcepacking", "force_packing")]
ForcePacking,
/// <remarks>Used in ClrMamePro and Logiqx</remarks>
[Mapping("header", "headerskipper", "header_skipper", "skipper")]
HeaderSkipper,
/// <remarks>Used in ClrMamePro, DOSCenter, Logiqx, and RomCenter</remarks>
[Mapping("homepage", "home_page")]
Homepage,
/// <remarks>Used in Logiqx</remarks>
[Mapping("id", "nointroid", "no_intro_id")]
ID,
/// <remarks>Used with OfflineList; Part of "Info" object</remarks>
[Mapping("info_default", "infos_default")]
Info_Default,
/// <remarks>Used with OfflineList; Part of "Info" object</remarks>
[Mapping("info_isnamingoption", "info_is_naming_option", "infos_isnamingoption", "infos_is_naming_option")]
Info_IsNamingOption,
/// <remarks>Used with OfflineList; Part of "Info" object</remarks>
[Mapping("info_name", "infos_name")]
Info_Name,
/// <remarks>Used with OfflineList; Part of "Info" object</remarks>
[Mapping("info_visible", "infos_visible")]
Info_Visible,
/// <remarks>Used in Logiqx</remarks>
[Mapping("lockbiosmode", "lockbios_mode", "lock_biosmode", "lock_bios_mode")]
LockBiosMode,
/// <remarks>Used in Logiqx</remarks>
[Mapping("lockrommode", "lockrom_mode", "lock_rommode", "lock_rom_mode")]
LockRomMode,
/// <remarks>Used in Logiqx</remarks>
[Mapping("locksamplemode", "locksample_mode", "lock_samplemode", "lock_sample_mode")]
LockSampleMode,
/// <remarks>Used in ListXML</remarks>
[Mapping("mameconfig", "mame_config")]
MameConfig,
/// <remarks>Used in ClrMamePro, DOSCenter, ListXML, Logiqx, OfflineList, OpenMSX, RomCenter, Separated Value, and Software List</remarks>
[Mapping("dat", "datname", "dat_name", "internalname", "internal_name")]
Name,
/// <remarks>Used with RomCenter</remarks>
[Mapping("rcversion", "rc_version", "romcenterversion", "romcenter_version", "rom_center_version")]
RomCenterVersion,
/// <remarks>Used in Logiqx</remarks>
[Mapping("rommode", "rom_mode")]
RomMode,
/// <remarks>Used with OfflineList</remarks>
[Mapping("romtitle", "rom_title")]
RomTitle,
/// <remarks>Used with ClrMamePro and Logiqx</remarks>
[Mapping("root", "rootdir", "root_dir", "rootdirectory", "root_directory")]
RootDir,
/// <remarks>Used in Logiqx</remarks>
[Mapping("samplemode", "sample_mode")]
SampleMode,
/// <remarks>Used with OfflineList</remarks>
[Mapping("screenshotheight", "screenshotsheight", "screenshot_height", "screenshots_height")]
ScreenshotsHeight,
/// <remarks>Used with OfflineList</remarks>
[Mapping("screenshotwidth", "screenshotswidth", "screenshot_width", "screenshots_width")]
ScreenshotsWidth,
/// <remarks>Used with Logiqx, OfflineList, and RomCenter; "plugin" is used for RomCenter</remarks>
[Mapping("system", "plugin")]
System,
/// <remarks>Used with ClrMamePro, Logiqx, and OfflineList</remarks>
[Mapping("dattype", "type", "superdat")]
Type,
/// <remarks>Used with ClrMamePro, Logiqx, OfflineList, and RomCenter</remarks>
[Mapping("url")]
Url,
/// <remarks>Used with ClrMamePro, DOSCenter, ListXML, Logiqx, OfflineList, and RomCenter</remarks>
[Mapping("version")]
Version,
}
#endregion
#region Logging
/// <summary>