diff --git a/PKHeX.Core/Editing/Saves/Slots/Extensions.cs b/PKHeX.Core/Editing/Saves/Slots/Extensions.cs index 2d29b774e..3b0480d21 100644 --- a/PKHeX.Core/Editing/Saves/Slots/Extensions.cs +++ b/PKHeX.Core/Editing/Saves/Slots/Extensions.cs @@ -52,6 +52,7 @@ public static List GetExtraSlots(this SaveFile sav, bool all = fal SAV6XY xy => GetExtraSlots6XY(xy), SAV6AO xy => GetExtraSlots6AO(xy), SAV7 sav7 => GetExtraSlots7(sav7, all), + SAV7b lgpe => GetExtraSlots7b(lgpe), SAV8SWSH ss => GetExtraSlots8(ss), _ => None, }; @@ -167,6 +168,14 @@ private static List GetExtraSlots7(SAV7 sav, bool all) return list; } + private static List GetExtraSlots7b(SAV7b sav) + { + return new() + { + new SlotInfoMisc(sav.Data, 0, sav.Blocks.GetBlockOffset(BelugaBlockIndex.Daycare) + 8, true) {Type = StorageSlotType.Daycare}, + }; + } + private static List GetExtraSlots8(ISaveBlock8Main sav) { var fused = sav.Fused; diff --git a/PKHeX.Core/Saves/Substructures/Gen7/BelugaBlockIndex.cs b/PKHeX.Core/Saves/Substructures/Gen7/BelugaBlockIndex.cs index f4f3eec91..4c290b6d1 100644 --- a/PKHeX.Core/Saves/Substructures/Gen7/BelugaBlockIndex.cs +++ b/PKHeX.Core/Saves/Substructures/Gen7/BelugaBlockIndex.cs @@ -15,7 +15,7 @@ public enum BelugaBlockIndex /* 10 @ 0x45400, len = 0x00008 */ PlayTime, /* 11 @ 0x45600, len = 0x00E90 */ WB7Record, /* 12 @ 0x46600, len = 0x010A4 */ CaptureRecord, - /* 13 @ 0x47800, len = 0x000F0 */ _13, + /* 13 @ 0x47800, len = 0x000F0 */ Daycare, /* 14 @ 0x47A00, len = 0x06010 */ _14, /* 15 @ 0x4DC00, len = 0x00200 */ _15, // stuff containing data about recent captures? /* 16 @ 0x4DE00, len = 0x00098 */ _16,