mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Change location of Extra INI ROOT_FOLDER remap
This commit is contained in:
@@ -784,10 +784,6 @@ namespace SabreTools.Library.DatFiles
|
||||
string key = mapping.Key;
|
||||
List<string> machineNames = mapping.Value;
|
||||
|
||||
// If we have the root folder, assume boolean
|
||||
if (string.Equals(key, "ROOT_FOLDER"))
|
||||
key = "true";
|
||||
|
||||
// Loop through the machines and add the new mappings
|
||||
foreach (string machine in machineNames)
|
||||
{
|
||||
|
||||
@@ -76,6 +76,12 @@ namespace SabreTools.Library.Filtering
|
||||
string key = ir.Section;
|
||||
string value = ir.Line.Trim();
|
||||
|
||||
// If the section is "ROOT_FOLDER", then we use the value "true" instead.
|
||||
// This is done because some INI files use the name of the file as the
|
||||
// category to be assigned to the items included.
|
||||
if (key == "ROOT_FOLDER")
|
||||
key = "true";
|
||||
|
||||
// Ensure the key exists
|
||||
if (!Mappings.ContainsKey(key))
|
||||
Mappings[key] = new List<string>();
|
||||
|
||||
Reference in New Issue
Block a user