Esempio n. 1
0
        private static void RE_GetExportByNameAndGroup()
        {
            Index  NameRef1  = NameTable.IndexOf("MeshEmitter0");
            Export GroupRef1 = ExportTable
                               .Where(E => E.NameTableRef == NameTable.IndexOf("ab_bleeding"))
                               ?.First();

            int Ind = ExportTable.IndexOf(GroupRef1);

            var Exp1 = ExportTable
                       .Where(E => E.NameTableRef == NameRef1)
                       ?.Where(E => E.Group == Ind)
                       .ToArray();

            //?.First();
            ;

            /*int RealOffset1 = 0x044C32;
             * Console.WriteLine("{0:X} - {1:X} = {2:X}",
             *  RealOffset1,
             *  (int)Exp1.SerialOffset,
             *  RealOffset1 - Exp1.SerialOffset);*/
        }