private static void DoSoundListCreate(FileSystemInfo source, FileInfo target) { Console.WriteLine($"Scanning '{source.FullName}' for .pcm files."); var sourceContainer = FilesContainer.From(source.FullName); var names = sourceContainer.GetFiles().Where(a => a.EndsWith(".pcm", StringComparison.OrdinalIgnoreCase)).ToList(); Console.WriteLine($"{names.Count} .pcm files found."); Console.WriteLine("Writing."); SoundListFile.WriteEntries(target.FullName, names); Console.WriteLine("Done."); }
private static void DoLoadListCreate(FileInfo target, FileSystemInfo initial, FileSystemInfo shared, FileSystemInfo shared_sound) { var initialContainer = FilesContainer.From(initial.FullName); var sharedContainer = FilesContainer.From(shared.FullName); var sharedSoundContainer = FilesContainer.From(shared_sound.FullName); var initialContainerFiles = initialContainer.GetFiles(); var sharedContainerFiles = sharedContainer.GetFiles(); var sharedSoundContainerFiles = sharedSoundContainer.GetFiles(); LoadListFile.WriteFileNames(target.FullName, initialContainerFiles, sharedContainerFiles, sharedSoundContainerFiles); }