mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile, Missfile] Change param names
This commit is contained in:
@@ -5900,20 +5900,20 @@ namespace SabreTools.Library.DatFiles
|
||||
/// Process an item and correctly set the item name
|
||||
/// </summary>
|
||||
/// <param name="item">DatItem to update</param>
|
||||
/// <param name="removeQuotes">True if the Quotes flag should be ignored, false otherwise</param>
|
||||
/// <param name="alwaysRomName">True if the UseRomName should be always on (default), false otherwise</param>
|
||||
protected void ProcessItemName(DatItem item, bool removeQuotes, bool alwaysRomName = true)
|
||||
/// <param name="forceRemoveQuotes">True if the Quotes flag should be ignored, false otherwise</param>
|
||||
/// <param name="forceRomName">True if the UseRomName should be always on (default), false otherwise</param>
|
||||
protected void ProcessItemName(DatItem item, bool forceRemoveQuotes, bool forceRomName = true)
|
||||
{
|
||||
string name = item.Name;
|
||||
|
||||
// Backup relevant values and set new ones accordingly
|
||||
bool quotesBackup = Quotes;
|
||||
bool useRomNameBackup = UseRomName;
|
||||
if (removeQuotes)
|
||||
if (forceRemoveQuotes)
|
||||
{
|
||||
Quotes = false;
|
||||
}
|
||||
if (alwaysRomName)
|
||||
if (forceRomName)
|
||||
{
|
||||
UseRomName = true;
|
||||
}
|
||||
@@ -5980,11 +5980,11 @@ namespace SabreTools.Library.DatFiles
|
||||
item.Name = pre + name + post;
|
||||
|
||||
// Restore all relevant values
|
||||
if (removeQuotes)
|
||||
if (forceRemoveQuotes)
|
||||
{
|
||||
Quotes = quotesBackup;
|
||||
}
|
||||
if (alwaysRomName)
|
||||
if (forceRomName)
|
||||
{
|
||||
UseRomName = useRomNameBackup;
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace SabreTools.Library.DatFiles
|
||||
string state = "";
|
||||
|
||||
// Process the item name
|
||||
ProcessItemName(rom, false, alwaysRomName: false);
|
||||
ProcessItemName(rom, false, forceRomName: false);
|
||||
|
||||
// If we're in Romba mode, the state is consistent
|
||||
if (Romba)
|
||||
|
||||
Reference in New Issue
Block a user