/// <summary> /// Apply and write patch data. /// </summary> /// <param name="options">Options</param> public void ApplyPatch(AsmOptionsGameplay options) { this.Patcher.Apply(this.Symbols, options); this.ExtraMessages = this.Symbols.CreateInitialExtMessageTable(); this.MimicTable = this.Symbols.CreateMimicItemTable(); }
/// <summary> /// Write <see cref="MimicItemTable"/> table to ROM. /// </summary> /// <param name="table">Table</param> public void WriteMimicItemTable(MimicItemTable table) { var addr = this["ITEM_OVERRIDE_ENTRIES"]; ReadWriteUtils.WriteToROM((int)addr, table.Build()); }