I would like to know how to do this, too. I'm trying to port a Dolphin mod for it over to the Wii.
auto
I found the answer! https://gamebanana.com/threads/214475
FawfultheGreat64 is the most experienced modder for Super Paper Mario, so thank him. I'll do my part and thank him myself.