コード例 #1
0
        public void Update(CvmFile cvm)
        {
            /*
             * if (cvm.RootDirectory.SubEntries.Count != _rootDirectoryListing.SubEntries.Length)
             * {
             *  throw new System.Exception("Error: Number of files in CVM root directory does not match the number of files in the executable listing!");
             * }
             */

            mRootDirectoryListing.Update(cvm.RootDirectory);
        }
コード例 #2
0
        internal void Update(IsoDirectoryRecord record)
        {
            if (mHeader.name != record.Name)
            {
                Console.WriteLine("Warning: CVM entry name mismatch! Expected: \"{0}\" Got: \"{1}\"", mHeader.name, record.Name);
            }

            mHeader.size = record.Size;
            mHeader.LBA  = record.LBA;

            if (mDirList != null)
            {
                mDirList.Update(record);
            }
        }