mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Rename Cleaner.Clean to Normalize
This commit is contained in:
@@ -15,11 +15,6 @@ namespace SabreTools.DatTools
|
|||||||
{
|
{
|
||||||
#region Fields
|
#region Fields
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Clean all names to WoD standards
|
|
||||||
/// </summary>
|
|
||||||
public bool Clean { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deduplicate items using the given method
|
/// Deduplicate items using the given method
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -35,6 +30,11 @@ namespace SabreTools.DatTools
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool KeepEmptyGames { get; set; }
|
public bool KeepEmptyGames { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Normalize all names to WoD standards
|
||||||
|
/// </summary>
|
||||||
|
public bool Normalize { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enable "One Rom, One Region (1G1R)" mode
|
/// Enable "One Rom, One Region (1G1R)" mode
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -226,8 +226,8 @@ namespace SabreTools.DatTools
|
|||||||
datItemName = TextHelper.RemoveUnicodeCharacters(datItemName);
|
datItemName = TextHelper.RemoveUnicodeCharacters(datItemName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we're in cleaning mode, sanitize machine name and description
|
// If we're in normalization mode, sanitize machine name and description
|
||||||
if (Clean)
|
if (Normalize)
|
||||||
{
|
{
|
||||||
machineName = TextHelper.NormalizeCharacters(machineName);
|
machineName = TextHelper.NormalizeCharacters(machineName);
|
||||||
machineDesc = TextHelper.NormalizeCharacters(machineDesc);
|
machineDesc = TextHelper.NormalizeCharacters(machineDesc);
|
||||||
@@ -283,8 +283,8 @@ namespace SabreTools.DatTools
|
|||||||
datItemName = TextHelper.RemoveUnicodeCharacters(datItemName);
|
datItemName = TextHelper.RemoveUnicodeCharacters(datItemName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we're in cleaning mode, sanitize machine name and description
|
// If we're in normalization mode, sanitize machine name and description
|
||||||
if (Clean)
|
if (Normalize)
|
||||||
{
|
{
|
||||||
machineName = TextHelper.NormalizeCharacters(machineName);
|
machineName = TextHelper.NormalizeCharacters(machineName);
|
||||||
machineDesc = TextHelper.NormalizeCharacters(machineDesc);
|
machineDesc = TextHelper.NormalizeCharacters(machineDesc);
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace SabreTools.Test
|
|||||||
// Setup cleaner
|
// Setup cleaner
|
||||||
var cleaner = new Cleaner
|
var cleaner = new Cleaner
|
||||||
{
|
{
|
||||||
Clean = true,
|
Normalize = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Setup DatItem
|
// Setup DatItem
|
||||||
|
|||||||
@@ -2158,7 +2158,7 @@ Some special strings that can be used:
|
|||||||
{
|
{
|
||||||
Cleaner cleaner = new()
|
Cleaner cleaner = new()
|
||||||
{
|
{
|
||||||
Clean = GetBoolean(features, CleanValue),
|
Normalize = GetBoolean(features, CleanValue),
|
||||||
DedupeRoms = GetDedupeType(features),
|
DedupeRoms = GetDedupeType(features),
|
||||||
DescriptionAsName = GetBoolean(features, DescriptionAsNameValue),
|
DescriptionAsName = GetBoolean(features, DescriptionAsNameValue),
|
||||||
KeepEmptyGames = GetBoolean(features, KeepEmptyGamesValue),
|
KeepEmptyGames = GetBoolean(features, KeepEmptyGamesValue),
|
||||||
|
|||||||
Reference in New Issue
Block a user