I've written a basic .nds file using DevKitPro which calls an external http API. I want to add this functionality to an existing .nds game (Pokemon White 2) so I can call the API whenever I catch a Pokemon.
Is there an established method of adding DevKitPro code to an existing .nds file? I've been unable to find anything specific...
I was going to compile my DevKitPro code from .c to .nds, then locate what I'd written in IDA by opening the arm9.bin file of my .nds file. Then, I was going to copy that code across to my Pokemon White 2 .nds file's arm9.bin and call its address whenever I wanted to make an API call. Am I over-complicating things?
I don't want someone to do it for me, I just want a push in the right direction.
Thanks, and apologies if this isn't the right section.