Пример #1
0
        public static void BuildRomFS(string rootDirectory, IFileSystem fileSystem, Stream outputStream, ProcessingProgressedToken?progressToken = null)
        {
            var RomFiles = RomfsFile.LoadFromFileSystem(rootDirectory, fileSystem);
            var metadata = RomFsMetadataBuilder.BuildRomFSHeader(RomFiles, rootDirectory, fileSystem);

            MakeRomFSData(outputStream, fileSystem, RomFiles, metadata, progressToken);
        }
Пример #2
0
        public static byte[] BuildRomFSHeader(List <RomfsFile> Entries, string directory, IFileSystem fileSystem)
        {
            var metadata = new RomFsMetadataBuilder();

            metadata.CalcRomfsSize(directory, fileSystem);
            metadata.PopulateRomfs(Entries, directory, fileSystem);
            return(metadata.WriteMetaDataToStream());
        }