Merge pull request #329 from GriffinRichards/doc-gcn
Label GCN link flags field
This commit is contained in:
+1
-1
@@ -276,7 +276,7 @@ struct SaveBlock2
|
||||
/*0x090*/ u8 filler_90[0x8];
|
||||
/*0x098*/ struct Time localTimeOffset;
|
||||
/*0x0A0*/ struct Time lastBerryTreeUpdate;
|
||||
/*0x0A8*/ u32 field_A8;
|
||||
/*0x0A8*/ u32 gcnLinkFlags; // Read by Pokemon Colosseum/XD
|
||||
/*0x0AC*/ u8 field_AC;
|
||||
/*0x0AD*/ u8 field_AD;
|
||||
/*0x0B0*/ struct BattleTowerData battleTower;
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@ void NewGameInitData(void)
|
||||
ClearSav1();
|
||||
ClearMailData();
|
||||
gSaveBlock2Ptr->specialSaveWarpFlags = 0;
|
||||
gSaveBlock2Ptr->field_A8 = 0;
|
||||
gSaveBlock2Ptr->gcnLinkFlags = 0;
|
||||
gSaveBlock2Ptr->field_AC = 1;
|
||||
gSaveBlock2Ptr->field_AD = 0;
|
||||
InitPlayerTrainerId();
|
||||
|
||||
+7
-7
@@ -95,16 +95,16 @@ void TrySetMapSaveWarpStatus(void)
|
||||
|
||||
void SetUnlockedPokedexFlags(void)
|
||||
{
|
||||
gSaveBlock2Ptr->field_A8 |= 0x1;
|
||||
gSaveBlock2Ptr->field_A8 |= 0x10;
|
||||
gSaveBlock2Ptr->field_A8 |= 0x20;
|
||||
gSaveBlock2Ptr->gcnLinkFlags |= 0x1;
|
||||
gSaveBlock2Ptr->gcnLinkFlags |= 0x10;
|
||||
gSaveBlock2Ptr->gcnLinkFlags |= 0x20;
|
||||
}
|
||||
|
||||
void SetPostgameFlags(void)
|
||||
{
|
||||
gSaveBlock2Ptr->specialSaveWarpFlags |= CHAMPION_SAVEWARP;
|
||||
gSaveBlock2Ptr->field_A8 |= 0x2;
|
||||
gSaveBlock2Ptr->field_A8 |= 0x4;
|
||||
gSaveBlock2Ptr->field_A8 |= 0x8;
|
||||
gSaveBlock2Ptr->field_A8 |= 0x8000;
|
||||
gSaveBlock2Ptr->gcnLinkFlags |= 0x2;
|
||||
gSaveBlock2Ptr->gcnLinkFlags |= 0x4;
|
||||
gSaveBlock2Ptr->gcnLinkFlags |= 0x8;
|
||||
gSaveBlock2Ptr->gcnLinkFlags |= 0x8000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user