Gericom / GBARunner3

182 stars 24 forks source link

Switch to profi200s dsi sd card driver #160

Open Dartz150 opened 2 months ago

Dartz150 commented 2 months ago

This PR adds changes to switch from using libnds DSi SD card driver to profi200 SD card driver from here, partially fixes #71

The driver was slightly modified to use libtwl instead, and it waits for an event instead of just halting, thanks to @Xluma as libtwl integration is based from his implementation in another libtwl related project.

This has been tested working correctly in both DSi/3DS consoles, with these SD cards;

It also fixes random flickering in Mega Man Zero 4 intro stage BG animations and Wild Battle Encounter animation intros in Pokémon games, it may also fix other SD related issues in other games.

Sound crackling is still occurring in some games, like Mermaid Melody, so that may require to implement NDMA into this driver.