Esempio n. 1
0
        public static void MakeTextIDArray(List <UseTextID> list, uint pointer)
        {
            InputFormRef InputFormRef = Init(null);

            InputFormRef.ReInitPointer(pointer);
            UseTextID.AppendTextID(list, FELint.Type.MENU, InputFormRef, new uint[] { 4, 6 });
        }
Esempio n. 2
0
 public static void MakeTextIDArray(List <UseTextID> list)
 {
     {
         InputFormRef InputFormRef = N2_Init(null);
         UseTextID.AppendTextID(list, FELint.Type.ED, InputFormRef, new uint[] { 0, 2, 4, 6 });
     }
 }
Esempio n. 3
0
        public void MakeTextIDArray(List <UseTextID> list)
        {
            List <uint> tracelist = new List <uint>();

            foreach (var pair in this.AsmMap)
            {
                if (pair.Value.Length <= 0)
                {
                    continue;
                }

                if (pair.Value.TypeName == "TEXTBATCH")
                {
                    UseTextID.AppendASMDATATextID(list, pair.Value, U.toOffset(pair.Key), 4);
                }
                else if (pair.Value.TypeName == "TEXTBATCHSHORT")
                {
                    UseTextID.AppendASMDATATextID(list, pair.Value, U.toOffset(pair.Key), 2);
                }
                else if (pair.Value.TypeName == "EVENT")
                {
                    uint   event_addr = U.toOffset(pair.Key);
                    string name       = pair.Value.Name;
                    EventCondForm.MakeTextIDArrayByEventAddress(list, event_addr, name, tracelist);
                }
            }
        }
Esempio n. 4
0
        static void MakeTextIDArraySub(List <UseTextID> list, uint p, uint pointer, Dictionary <uint, bool> foundDic)
        {
            string name = "RMENU " + U.To0xHexString(Program.ROM.u16(p + 18));

            if (!foundDic.ContainsKey(p))
            {
                uint id = Program.ROM.u16(p + 18);
                UseTextID.AppendTextID(list, FELint.Type.RMENU, p + 18, "RMENU", id, p);
            }
            foundDic[p] = true;

            uint pp;

            pp = Program.ROM.p32(p + 0);
            if (U.isSafetyOffset(pp) && !foundDic.ContainsKey(pp))
            {
                MakeTextIDArraySub(list, pp, p + 0, foundDic);
            }
            pp = Program.ROM.p32(p + 4);
            if (U.isSafetyOffset(pp) && !foundDic.ContainsKey(pp))
            {
                MakeTextIDArraySub(list, pp, p + 4, foundDic);
            }
            pp = Program.ROM.p32(p + 8);
            if (U.isSafetyOffset(pp) && !foundDic.ContainsKey(pp))
            {
                MakeTextIDArraySub(list, pp, p + 8, foundDic);
            }
            pp = Program.ROM.p32(p + 12);
            if (U.isSafetyOffset(pp) && !foundDic.ContainsKey(pp))
            {
                MakeTextIDArraySub(list, pp, p + 12, foundDic);
            }
        }
Esempio n. 5
0
        //マージ専用
        public void AppendList(List <UseTextID> list)
        {
            foreach (var pair in this.EtcTextID)
            {
                UseTextID.AppendTextID(list, FELint.Type.TEXTID_FOR_USER, U.NOT_FOUND, pair.Value, pair.Key);
            }
            foreach (var pair in this.TextID)
            {
                UseTextID.AppendTextID(list, FELint.Type.TEXTID_FOR_SYSTEM, U.NOT_FOUND, pair.Value, pair.Key);
            }

            if (Program.ROM.RomInfo.version() == 8)
            {
                if (Program.ROM.RomInfo.is_multibyte())
                {
                    for (uint textid = 0xE00; textid <= 0xEFF; textid++)
                    {
                        UseTextID.AppendTextID(list, FELint.Type.TEXTID_FOR_SYSTEM, U.NOT_FOUND, "", textid);
                    }
                }
                else
                {
                    for (uint textid = 0xE00; textid <= 0xFFF; textid++)
                    {
                        UseTextID.AppendTextID(list, FELint.Type.TEXTID_FOR_SYSTEM, U.NOT_FOUND, "", textid);
                    }
                }
            }
        }
Esempio n. 6
0
        public string GetName(uint textid)
        {
            UseTextID p = MakeUseTextID(textid);

            if (p == null)
            {
                return("");
            }
            return(p.Info);
        }
Esempio n. 7
0
 public static void MakeTextIDArray(List <UseTextID> list)
 {
     {
         InputFormRef InputFormRef = Init(null);
         UseTextID.AppendTextID(list, FELint.Type.BATTTLE_TALK, InputFormRef, new uint[] { 4 });
     }
     {
         InputFormRef InputFormRef = N1_Init(null);
         UseTextID.AppendTextID(list, FELint.Type.BATTTLE_TALK, InputFormRef, new uint[] { 4 });
     }
 }
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.HAIKU, InputFormRef, new uint[] { 4 }, 8);

            InputFormRef N1_InputFormRef = N1_Init(null);

            N1_InputFormRef.ReInitPointer(Program.ROM.RomInfo.event_haiku_tutorial_1_pointer());
            UseTextID.AppendTextID(list, FELint.Type.HAIKU, N1_InputFormRef, new uint[] { }, 4);
            N1_InputFormRef.ReInitPointer(Program.ROM.RomInfo.event_haiku_tutorial_2_pointer());
            UseTextID.AppendTextID(list, FELint.Type.HAIKU, N1_InputFormRef, new uint[] { }, 4);
        }
Esempio n. 9
0
        public static void MakeTextIDArray(List <UseTextID> list, uint script_addr)
        {
            script_addr = U.toOffset(script_addr);
            if (!U.isSafetyOffset(script_addr))
            {
                return;
            }

            InputFormRef InputFormRef = Init(null);

            InputFormRef.ReInit(script_addr);

            UseTextID.AppendTextID(list, FELint.Type.POINTER_TALKGROUP, InputFormRef, new uint[] { 0 });
        }
Esempio n. 10
0
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            {
                InputFormRef InputFormRef = N1_Init(null);
                UseTextID.AppendTextID(list, FELint.Type.ED, InputFormRef, new uint[] { 4 });
            }
            {
                InputFormRef InputFormRef = N2_Init(null);
                UseTextID.AppendTextID(list, FELint.Type.ED, InputFormRef, new uint[] { 4 });

                InputFormRef.ReInitPointer
                    ((Program.ROM.RomInfo.ed_3b_pointer()));
                UseTextID.AppendTextID(list, FELint.Type.ED, InputFormRef, new uint[] { 4 });
            }
        }
Esempio n. 11
0
        //テキストの取得
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef ifr;

            if (PatchUtil.SearchSkillSystem() != PatchUtil.skill_system_enum.SkillSystem)
            {
                return;
            }

            {
                uint basetextP = FindTextPointer();
                if (basetextP == U.NOT_FOUND)
                {
                    return;
                }
                ifr = Init(null, basetextP);
                UseTextID.AppendTextID(list, FELint.Type.SKILL_CONFIG, ifr, new uint[] { 0 });
            }
        }
Esempio n. 12
0
        //テキストの取得
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef ifr;

            if (PatchUtil.SearchSkillSystem() != PatchUtil.skill_system_enum.FE8N_ver2)
            {
                return;
            }

            uint[] pointer = FindSkillFE8NVer2IconPointers();
            if (pointer == null)
            {
                return;
            }
            if (g_SkillBaseAddress == 0)
            {
                return;
            }

            ifr = Init(null);
            UseTextID.AppendTextID(list, FELint.Type.SKILL_CONFIG, ifr, new uint[] { 0 });
        }
        //テキストの取得
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            uint[] pointer;

            PatchUtil.skill_system_enum skill = PatchUtil.SearchSkillSystem();
            if (skill == PatchUtil.skill_system_enum.FE8N ||
                skill == PatchUtil.skill_system_enum.yugudora)
            {
                pointer = FindSkillFE8NVer1IconPointers();
            }
            else if (skill == PatchUtil.skill_system_enum.FE8N_ver2)
            {
                pointer = SkillConfigFE8NVer2SkillForm.FindSkillFE8NVer2IconPointers();
            }
            else
            {
                return;
            }

            if (pointer == null)
            {
                return;
            }

            InputFormRef ifr = Init(null);

            for (int i = 0; i < pointer.Length; i++)
            {
                ifr.ReInitPointer(pointer[i]);
                if (ifr.DataCount <= 0)
                {
                    continue;
                }
                UseTextID.AppendTextID(list, FELint.Type.SKILL_CONFIG, ifr, new uint[] { 2 });
            }
        }
Esempio n. 14
0
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.CLASS, InputFormRef, new uint[] { 0, 2 });
        }
Esempio n. 15
0
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.MAPSETTING, InputFormRef, new uint[] { 48, 50, 52, 60 });
        }
Esempio n. 16
0
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.SOUNDROOM, InputFormRef, new uint[] { 4, 8 });
        }
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.EVENT_FINAL_SERIF, InputFormRef, new uint[] { 4 });
        }
Esempio n. 18
0
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.MAPSETTING, InputFormRef, new uint[] { 112, 114, 116, 118, 122, 124, 126, 128, 140, 142 });
        }
Esempio n. 19
0
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.STATUS_GAME_OPTION, InputFormRef, new uint[] { 0, 4, 6, 12, 14, 20, 22, 28, 30 });
        }
Esempio n. 20
0
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.WMAP_BASE_POINT, InputFormRef, new uint[] { 28 });
        }
Esempio n. 21
0
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.STATUS_UNITS_MENU, InputFormRef, new uint[] { 4, 12 });
        }
Esempio n. 22
0
        public static void MakeTextIDArray(List <UseTextID> list)
        {
            InputFormRef InputFormRef = Init(null);

            UseTextID.AppendTextID(list, FELint.Type.SUPPORT_TALK, InputFormRef, new uint[] { 4, 8, 12 });
        }