Skip to content

Commit

Permalink
feat: read correct offsets for Trainer info (TID/SID)
Browse files Browse the repository at this point in the history
  • Loading branch information
Insektaure committed May 13, 2024
1 parent 7d2bf7c commit d91f1f9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions libs/csight-core/src/sv/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ use pkm_rs::{Ek9, Pk9};
pub fn read_trainer_info() -> TrainerInfo {
DmntReader::new_from_main_nso(u64::from(Offsets::MyStatus))
.follow(0)
.follow(0xd8)
.follow(0x08)
.follow(0xb8)
.follow(0xd0)
//.follow(0x40)
.follow(0xD8)
.follow(0x8)
.follow(0xB8)
.follow(0)
.read_offset(0x40)
//.read_offset(0)
}

fn read_pokemon_from_core_param(reader: DmntReader) -> Pk9 {
Expand Down

0 comments on commit d91f1f9

Please sign in to comment.