static uint ReInit(InputFormRef ifr) { if (ifr == null) { return(U.NOT_FOUND); } uint addr = Program.ROM.p32(Program.ROM.RomInfo.map_load_function_pointer()); uint count = Program.ROM.u8(Program.ROM.RomInfo.map_load_function_switch1_address() + 0); bool enable = PatchUtil.IsSwitch1Enable(Program.ROM.RomInfo.map_load_function_switch1_address()); if (enable == false) { return(U.NOT_FOUND); } if (!U.isSafetyOffset(addr)) { return(U.NOT_FOUND); } ifr.ReInit(addr, count + 1); return(addr); }
private void MapLoadFunctionForm_Load(object sender, EventArgs e) { bool enable = PatchUtil.IsSwitch1Enable(Program.ROM.RomInfo.map_load_function_switch1_address()); if (!enable) { this.ERROR_NOT_FOUND.Show(); this.WriteButton.Hide(); } //章拡張を表示するかどうか uint map_count = MapSettingForm.GetDataCount(); if (MapSettingForm.IsShowChapterExetdns((int)map_count)) { AddressListExpandsButton_255.Show(); } else { this.AddressList.Height += AddressListExpandsButton_255.Height; AddressListExpandsButton_255.Hide(); } }