Beispiel #1
0
        bool ParseLynELF(string line, string orignalIine)
        {
            bool   inctevent_lyn = false;
            string a             = Keyword(line, "#inctevent lyn");

            if (a == "")
            {
                a = Keyword(line, "#inctext lyn");
                if (a == "")
                {
                    return(false);
                }
            }
            else
            {
                inctevent_lyn = true;
            }
            string filename    = U.cut(a, "\"", "\"");
            string fullbinname = Path.Combine(this.Dir, filename);

            if (!File.Exists(fullbinname))
            {
                return(false);
            }

            DataEnum dataType;

            dataType = DataEnum.LYN;

            Elf  elf  = new Elf(fullbinname, useHookMode: false);
            Data data = new Data(filename, elf.ProgramBIN, dataType);

            this.DataList.Add(data);

            if (inctevent_lyn == false)
            {
                ParseLynSecondArgs(a);
            }
            return(true);
        }