Well after awhile I got it to work. After looking at the code you listed there I realized that the emulator I was using broke up the .sav and .rtc files into two seperate ones. So copy paste the code and boom! Works great, thanks a lot friend.
Hi all I'm having some serious difficulty transferring saves from my emulators to my 3ds. I followed the guide for the gen 1 games that I found here, https://digiex.net/threads/pokemon-gameboy-rom-save-transfer-to-3ds-red-blue-yellow-green.14646/
But if i do the exact same thing with my gen 2...