melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.18k stars 524 forks source link

Pu region sizing/bounds fix #2024

Closed Jaklyy closed 5 months ago

Jaklyy commented 5 months ago

Adjusts the sizing of PU regions Enforces a minimum size of 4kb to them. Enforces a cap of 0x100000 to the endpoint variable. Not needed anymore (someone double check my math) Makes it so that the start point is force aligned to a multiple of the size which improves hw accuracy, and also fixes it potentially overflowing the size variable, or breaking the bounds of the array and corrupting things. Fixes one of the bugs impacting GBARunner3. Also adjusts some logging.