cecilarmitais 883be16336 Make SetLeaderAction match EU and JP
Two region-conditional calls the US build cannot see:

- SetDecoyAiTracker(GetLeader()) is US/EU only. Its declaration in
  overlay_29_022FB538.h already sits inside #ifndef JAPAN, so calling it
  unconditionally broke the JP build at compile time, not just at the checksum.
- ov29_022F2FE4() is an extra call EU makes after ov29_022E0B44() in the tail
  block, from an #ifdef EUROPE in the asm that the previous commit missed.

The remaining region differences in the replaced asm need no source change. Two
are struct-layout consequences that dungeon.h already models. The other three
looked like swapped constants but are immediate encodability: in each region the
value that is a single-instruction ARM immediate is materialized inline and the
other is derived from the pooled 0xBA3 and cached in a stack slot. 0xBA0 and
0x8E0 encode; 0xBA1 and 0x8DF do not, and the JP offset of -0x2C1 swaps which of
the pair is which.

This corrects the previous commit, which stated that JP was expected not to
match and that EU was unaffected. EU was in fact broken by it, and JP needed one
guarded call rather than a rewrite.

Authored by Claude (Opus 5) under human direction. Confirmed by matching builds
of all three targets: build/pmdsky.us/pmdsky.us.nds: OK,
build/pmdsky.eu/pmdsky.eu.nds: OK, build/pmdsky.jp/pmdsky.jp.nds: OK. EU and JP
were verified matching at the parent commit as well, so both are gains rather
than a pre-existing state.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 15:02:31 -07:00
2026-08-19 14:24:58 -07:00
2026-08-19 15:02:31 -07:00
…
2026-08-01 12:46:55 -04:00
…
…
…
2026-08-19 14:24:58 -07:00
…
…
…

Pokémon Mystery Dungeon: Explorers of Sky

This is a WIP disassembly of Pokémon Mystery Dungeon: Explorers of Sky. For instructions on how to set up the repository, please read INSTALL.md. For information on how to contribute changes, see CONTRIBUTING.md.

This repository builds the following ROMs:

For contacts and other pret projects, see pret.github.io.

Description
Decompilation of Pokémon Mystery Dungeon: Explorers of Sky
Readme 335 MiB
Languages
Assembly 66.3%
C 18%
C++ 7.1%
Boogie 4.3%
sed 1.5%
Other 2.8%