diff --git a/SabreTools.Library/DatFiles/DatFile.cs b/SabreTools.Library/DatFiles/DatFile.cs index e4578d67..04184ed1 100644 --- a/SabreTools.Library/DatFiles/DatFile.cs +++ b/SabreTools.Library/DatFiles/DatFile.cs @@ -1670,8 +1670,9 @@ namespace SabreTools.Library.DatFiles // If the extracted list is null, just scan the item itself if (extracted == null) { - ProcessFile(newItem, string.Empty, newBasePath, omitFromScan, addDate, asFiles); + ProcessFile(newItem, newBasePath, omitFromScan, addDate, asFiles); } + // Otherwise, add all of the found items else { @@ -1715,22 +1716,15 @@ namespace SabreTools.Library.DatFiles /// Process a single file as a file /// /// File to be added - /// Parent game to be used /// Path the represents the parent directory /// Hash flag saying what hashes should not be calculated /// True if dates should be archived for all files, false otherwise /// TreatAsFiles representing CHD and Archive scanning - private void ProcessFile( - string item, - string parent, - string basePath, - Hash omitFromScan, - bool addDate, - TreatAsFiles asFiles) + private void ProcessFile(string item, string basePath, Hash omitFromScan, bool addDate, TreatAsFiles asFiles) { Globals.Logger.Verbose($"'{Path.GetFileName(item)}' treated like a file"); BaseFile baseFile = FileExtensions.GetInfo(item, omitFromScan: omitFromScan, date: addDate, header: Header.HeaderSkipper, chdsAsFiles: asFiles.HasFlag(TreatAsFiles.CHDs)); - ProcessFileHelper(item, DatItem.Create(baseFile), basePath, parent); + ProcessFileHelper(item, DatItem.Create(baseFile), basePath, string.Empty); } ///