diff --git a/SabreTools.Library/DatFiles/Filter.cs b/SabreTools.Library/DatFiles/Filter.cs index f2c7d6da..67429311 100644 --- a/SabreTools.Library/DatFiles/Filter.cs +++ b/SabreTools.Library/DatFiles/Filter.cs @@ -2068,6 +2068,9 @@ namespace SabreTools.Library.DatFiles /// DatFile to filter private void OneRomPerGame(DatFile datFile) { + // Because this introduces subfolders, we need to set the SuperDAT type + datFile.Header.Type = "SuperDAT"; + // For each rom, we want to update the game to be "/" Parallel.ForEach(datFile.Items.Keys, Globals.ParallelOptions, key => { @@ -2076,6 +2079,7 @@ namespace SabreTools.Library.DatFiles { string[] splitname = items[i].Name.Split('.'); items[i].MachineName += $"/{string.Join(".", splitname.Take(splitname.Length > 1 ? splitname.Length - 1 : 1))}"; + items[i].Name = Path.GetFileName(items[i].Name); } }); }