From d8c5c027ac9fcc732e0ee1839ac0429eb6c48106 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 6 Sep 2021 20:46:41 -0700 Subject: [PATCH] Emerald: Add walda wallpaper use block editor https://github.com/pret/pokeemerald/blob/f7a699c686d329edb48686d175caf709de426bf5/include/global.h#L1045 --- PKHeX.Core/Saves/SAV3E.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PKHeX.Core/Saves/SAV3E.cs b/PKHeX.Core/Saves/SAV3E.cs index 482d6d3c4..982210f25 100644 --- a/PKHeX.Core/Saves/SAV3E.cs +++ b/PKHeX.Core/Saves/SAV3E.cs @@ -211,6 +211,13 @@ namespace PKHeX.Core } protected override int SeenOffset3 => 0x3B24; + + private const int Walda = 0x3D70; + public ushort WaldaBackgroundColor { get => BitConverter.ToUInt16(Large, Walda + 0); set => BitConverter.GetBytes(value).CopyTo(Large, Walda + 0); } + public ushort WaldaForegroundColor { get => BitConverter.ToUInt16(Large, Walda + 2); set => BitConverter.GetBytes(value).CopyTo(Large, Walda + 2); } + public byte WaldaIconID { get => Large[Walda + 0x14]; set => Large[Walda + 0x14] = value; } + public byte WaldaPatternID { get => Large[Walda + 0x15]; set => Large[Walda + 0x15] = value; } + public bool WaldaUnlocked { get => Large[Walda + 0x16] != 0; set => Large[Walda + 0x16] = (byte)(value ? 1 : 0); } #endregion private const uint EXTRADATA_SENTINEL = 0x0000B39D;