Advertisement
zumid

Pokemon Gen 3 DirectSound Extension Hack

Feb 4th, 2023
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. How to extend the number of DirectSound tracks so your custom music doesn't cut off
  2.  
  3. src: https://www.pokecommunity.com/showthread.php?p=7559059#post7559059
  4.  
  5. Binary
  6. ------
  7. Replace any occurence of the hex sequence "00 C5 94 00" with "00 Cx 94 00"
  8. (x = new max. number of tracks)
  9.  
  10. Different games support different maximum without adverse effects:
  11.  
  12. game codes BPR*, BPG*, BPE* (Fire Red & Leaf Green, Emerald) = 12
  13. game codes AXV*, AXP* (Ruby & Sapphire) = 7
  14.  
  15. Decomp
  16. ------
  17. Open the file src/m4a.c.
  18. Line 80 should contain the following: | (5 << SOUND_MODE_MAXCHN_SHIFT));
  19. (if not, just search for it)
  20. Replace the "5" with the new maximum number of tracks, see Binary section above for supported maximum numbers.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement