mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 07:45:14 -05:00
Add daycare slot view for lgpe
Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com>
This commit is contained in:
@@ -52,6 +52,7 @@ public static List<SlotInfoMisc> 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<SlotInfoMisc> GetExtraSlots7(SAV7 sav, bool all)
|
||||
return list;
|
||||
}
|
||||
|
||||
private static List<SlotInfoMisc> GetExtraSlots7b(SAV7b sav)
|
||||
{
|
||||
return new()
|
||||
{
|
||||
new SlotInfoMisc(sav.Data, 0, sav.Blocks.GetBlockOffset(BelugaBlockIndex.Daycare) + 8, true) {Type = StorageSlotType.Daycare},
|
||||
};
|
||||
}
|
||||
|
||||
private static List<SlotInfoMisc> GetExtraSlots8(ISaveBlock8Main sav)
|
||||
{
|
||||
var fused = sav.Fused;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user