diff --git a/Enable-trade-with-FRLG-without-beating-the-game.md b/Enable-trade-with-FRLG-without-beating-the-game.md index e4d1a0c..d53dbf1 100644 --- a/Enable-trade-with-FRLG-without-beating-the-game.md +++ b/Enable-trade-with-FRLG-without-beating-the-game.md @@ -28,13 +28,13 @@ And then, in `src/link_rfu_3.c`, go to `InitHostRFUtgtGname` and change the foll ```diff -void InitHostRFUtgtGname(struct GFtgtGname *data, u8 activity, bool32 started, s32 child_sprite_genders) +void InitHostRfuGameData(struct RfuGameData *data, u8 activity, bool32 startedActivity, s32 partnerInfo) { s32 i; for (i = 0; i < 2; i++) { - data->unk_00.playerTrainerId[i] = gSaveBlock2Ptr->playerTrainerId[i]; + data->compatibility.playerTrainerId[i] = gSaveBlock2Ptr->playerTrainerId[i]; } for (i = 0; i < RFU_CHILD_MAX; i++) { @@ -43,16 +43,16 @@ void InitHostRFUtgtGname(struct GFtgtGname *data, u8 activity, bool32 started, s } data->playerGender = gSaveBlock2Ptr->playerGender; data->activity = activity; - data->started = started; - data->unk_00.language = GAME_LANGUAGE; - data->unk_00.version = GAME_VERSION; - data->unk_00.hasNews = FALSE; - data->unk_00.hasCard = FALSE; - data->unk_00.unknown = FALSE; -- data->unk_00.isChampion = FlagGet(FLAG_IS_CHAMPION); -+ data->unk_00.isChampion = TRUE; - data->unk_00.hasNationalDex = IsNationalPokedexEnabled(); - data->unk_00.gameClear = FlagGet(FLAG_SYS_GAME_CLEAR); + data->startedActivity = startedActivity; + data->compatibility.language = GAME_LANGUAGE; + data->compatibility.version = GAME_VERSION; + data->compatibility.hasNews = FALSE; + data->compatibility.hasCard = FALSE; + data->compatibility.unknown = FALSE; +- data->compatibility.isChampion = FlagGet(FLAG_IS_CHAMPION); ++ data->compatibility.isChampion = TRUE; + data->compatibility.hasNationalDex = IsNationalPokedexEnabled(); + data->compatibility.gameClear = FlagGet(FLAG_SYS_GAME_CLEAR); } ``` And that's it!