public VTSM_PGCI_LU_MENUS(byte[] array)
        {
            MemoryStream   s      = new MemoryStream(array);
            MyBinaryReader reader = new MyBinaryReader(s);

            this.numberOfMenus = reader.ReadInt16B();
            reader.Skip(2);
            this.endByteOfLU_MENUS = reader.ReadInt32B();
            for (int i = 0; i < this.numberOfMenus; i++)
            {
                VTSM_PGCI_LU_MENU item = new VTSM_PGCI_LU_MENU(array, i);
                base.Add(item);
            }
        }
Exemple #2
0
        public VTSM_PGCI_LU_MENUS(byte[] array)
        {
            MemoryStream   ms = new MemoryStream(array);
            MyBinaryReader br = new MyBinaryReader(ms);

            numberOfMenus = br.ReadInt16B();
            br.Skip(2);
            endByteOfLU_MENUS = br.ReadInt32B();

            for (int i = 0; i < numberOfMenus; i++)
            {
                VTSM_PGCI_LU_MENU menu = new VTSM_PGCI_LU_MENU(array, i);
                this.Add(menu);
            }
        }
Exemple #3
0
        public VTSM_PGCI_LU_MENU(byte[] array, int numberOfMenu)
        {
            MemoryStream   s      = new MemoryStream(array);
            MyBinaryReader reader = new MyBinaryReader(s);

            reader.Skip(8 + (numberOfMenu * 8));
            this.isGameMenu = reader.ReadByte() == 0;
            reader.Skip(3);
            this.startByteVTSM_PGCI = reader.ReadInt32B();
            reader.BaseStream.Seek((long)(this.startByteVTSM_PGCI + 0xe8), SeekOrigin.Begin);
            short num = reader.ReadInt16B();

            reader.BaseStream.Seek((long)(this.startByteVTSM_PGCI + num), SeekOrigin.Begin);
            reader.Skip(8);
            this.sector = reader.ReadInt32B();
        }
Exemple #4
0
        public VTSM_PGCI_LU_MENU(byte[] array, int numberOfMenu)
        {
            MemoryStream   ms = new MemoryStream(array);
            MyBinaryReader br = new MyBinaryReader(ms);

            br.Skip(8 + (numberOfMenu * 8));
            //byte a = br.ReadByte();
            isGameMenu = br.ReadByte() == (byte)0;
            br.Skip(3);
            startByteVTSM_PGCI = br.ReadInt32B();

            br.BaseStream.Seek(startByteVTSM_PGCI + 0xE8, SeekOrigin.Begin);
            short offsetCellPlaybackInformation = br.ReadInt16B();

            br.BaseStream.Seek(startByteVTSM_PGCI + offsetCellPlaybackInformation, SeekOrigin.Begin);
            br.Skip(8);
            sector = br.ReadInt32B();
        }
Exemple #5
0
 public VTSM_PGCI_UT(byte[] array)
 {
     try
     {
         MemoryStream   s      = new MemoryStream(array);
         MyBinaryReader reader = new MyBinaryReader(s);
         this.numberOfVTSM_PGCI_LU = reader.ReadInt16B();
         reader.Skip(2);
         this.endByteOfVTSM_PGCI_LU = reader.ReadInt32B();
         reader.Skip(4);
         int num = reader.ReadInt32B();
         reader.BaseStream.Seek((long)num, SeekOrigin.Begin);
         this.menus = new VTSM_PGCI_LU_MENUS(reader.ReadBytes(array.Length - num));
     }
     catch (Exception exception)
     {
         throw new Exception("Error searching sectors in DVD MENU", exception);
     }
 }
Exemple #6
0
        public VTSM_PGCI_UT(byte[] array)
        {
            try
            {
                MemoryStream   ms = new MemoryStream(array);
                MyBinaryReader br = new MyBinaryReader(ms);

                numberOfVTSM_PGCI_LU = br.ReadInt16B();
                br.Skip(2);
                endByteOfVTSM_PGCI_LU = br.ReadInt32B();
                br.Skip(4);
                int LU_1startByte = br.ReadInt32B();
                br.BaseStream.Seek(LU_1startByte, SeekOrigin.Begin);
                menus = new VTSM_PGCI_LU_MENUS(br.ReadBytes(array.Length - LU_1startByte));
            }
            catch (Exception ex)
            {
                throw new Exception("Error searching sectors in DVD MENU", ex);
            }
        }