Skip to content

Commit

Permalink
Update BSDP for 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zaksabeast committed Mar 16, 2022
1 parent 143c5f8 commit a3cb0f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions libs/csight-core/src/bdsp/offsets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use num_enum::IntoPrimitive;
#[derive(Clone, Copy, Debug, PartialEq, IntoPrimitive)]
#[repr(u64)]
pub enum Offset {
PlayerPrefsProviderInstance = 0x4e61dd0,
FieldManager = 0x4e2c6f0,
MainRng = 0x4f8e750,
UnionRoomManager = 0x4e395b0,
PlayerPrefsProviderInstance = 0x4c90330,
FieldManager = 0x4c5a638,
MainRng = 0x4fd43d0,
UnionRoomManager = 0x4c67750,
}
4 changes: 2 additions & 2 deletions libs/csight-core/src/bdsp/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ fn get_field_manager() -> DmntReader {
}

fn get_battle_setup_param() -> DmntReader {
get_player_prefs_provider().follow(0x7f0)
get_player_prefs_provider().follow(0x800)
}

fn get_read_player_party() -> DmntReader {
get_player_prefs_provider().follow(0x7f8)
get_player_prefs_provider().follow(0x808)
}

fn get_daycare() -> DmntReader {
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ class MainOverlay : public tsl::Overlay {
std::array<u8, 8> supported_shield_build_id = { 0xA1, 0x68, 0x02, 0x62, 0x5E, 0x78, 0x26, 0xBF };
tryGameWithBuildId(MainSwShView, SupportedGame::Shield, supported_shield_build_id);

std::array<u8, 8> supported_diamond_build_id = { 0x35, 0xB9, 0xD8, 0x77, 0x9B, 0x19, 0x51, 0x41 };
std::array<u8, 8> supported_diamond_build_id = { 0x94, 0xCE, 0xAE, 0x32, 0x5C, 0x20, 0x5C, 0x4B };
tryGameWithBuildId(MainBdSpView, SupportedGame::BrilliantDiamond, supported_diamond_build_id);

std::array<u8, 8> supported_pearl_build_id = { 0xD7, 0x52, 0x46, 0xEC, 0x33, 0xC2, 0xF6, 0x4B };
std::array<u8, 8> supported_pearl_build_id = { 0x38, 0xF5, 0x9C, 0xBD, 0xA2, 0xEB, 0x9C, 0x44 };
tryGameWithBuildId(MainBdSpView, SupportedGame::ShiningPearl, supported_pearl_build_id);

std::array<u8, 8> supported_arceus_build_id = { 0x66, 0xF1, 0x5C, 0x28, 0x1E, 0xFA, 0x7A, 0xDD };
Expand Down

0 comments on commit a3cb0f3

Please sign in to comment.