Skip to content

Commit

Permalink
Added support for Trainer Status expansion slots that became availabl…
Browse files Browse the repository at this point in the history
…e at SV patch v2.0.2
  • Loading branch information
fattard committed Oct 15, 2023
1 parent 44c7990 commit 39af564
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions FlagsGen9SV.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ protected override void AssembleList(string flagsList_res, bool[] customFlagValu
FillBlockStatus(savEventBlocks.GetBlockSafe(0x2482AD60).Data, endKey: 0x0000000000000000);
// Trainer Status
FillBlockStatus(savEventBlocks.GetBlockSafe(0xF018C4AC).Data, endKey: 0xCBF29CE484222645);
// Trainer Status Expansion (v2.0.2+)
FillBlockStatus(savEventBlocks.GetBlockSafe(0x28E475DE).Data, endKey: 0xCBF29CE484222645);

//TODO:
// Ghimighoul chests
Expand Down Expand Up @@ -149,6 +151,12 @@ protected override void AssembleList(string flagsList_res, bool[] customFlagValu

void FillBlockStatus(byte[] aData, ulong endKey)
{
// Ignore dummy blocks
if (aData.Length == 0)
{
return;
}

using (var ms = new System.IO.MemoryStream(aData))
{
using (var reader = new System.IO.BinaryReader(ms))
Expand Down

0 comments on commit 39af564

Please sign in to comment.