Make Extra INI more consistent

This commit is contained in:
Matt Nadareski
2024-10-24 02:47:30 -04:00
parent 038c399114
commit 349d3d1a78
4 changed files with 32 additions and 13 deletions

View File

@@ -82,7 +82,7 @@ namespace SabreTools.DatFiles
/// Populate the setters using a set of field names
/// </summary>
/// <param name="mappings">Dictionary of mappings</param>
public void PopulateSettersFromDictionary(Dictionary<(string, string), string>? mappings)
public void PopulateSettersFromDictionary(Dictionary<string, string>? mappings)
{
// If the dictionary is null or empty, just return
if (mappings == null || mappings.Count == 0)
@@ -93,7 +93,7 @@ namespace SabreTools.DatFiles
// Now we loop through and get values for everything
foreach (var mapping in mappings)
{
string field = $"{mapping.Key.Item1}.{mapping.Key.Item2}";
string field = mapping.Key;
string value = mapping.Value;
if (!SetSetter(field, value))