Oh my. I was suggesting something simpler at the RetroArch emulator level, but that certainly works :)

Thanks for sharing, glad it worked out!