Beispiel #1
0
void PlayerData::save(void) {
	GC::PlayerData::save();
	if (trainerGender > Female) trainerGender = Male;
	SV_FIELD_E(u8, trainerGender, 0x8e0, Gender);

	SV_FIELD_MAX(u32, pokeDollars, 0x8e4, 9999999);
	SV_FIELD_MAX(u32, pokeCoupons, 0x8e8, 9999999);
	SV_FIELD(u32, pokeCoupons, 0x8ec);

	SV_SUBSTRUCTURE(BagData, bag, 0x4c8);
	//0x94a: total step counter
}
void PlayerData::save(void) {
	GC::PlayerData::save();
	if (trainerGender > Female) trainerGender = Male;
	SV_FIELD_E(u8, trainerGender, 0x8e0, Gender);

	SV_FIELD(u32, money, 0x8e4);
	SV_FIELD(u32, pkCoupons, 0x8e8);
	SV_FIELD(u32, pkCoupons, 0x8ec);

	SV_SUBSTRUCTURE_ARRAY(Pokemon, party, 6, 0x30);
	SV_SUBSTRUCTURE(BagData, bag, 0x4c8);

}