Stay in game when backgrounded instead of switching to main menu

I’d like to use gamegem to modify the stats in ff7. This does work in other emulators such as snes9x ex. I think the reason it won’t work with retroarch is because when backgrounded it leaves the core and returns to the main menu. Is it possible to stop this from happening? Thanks in advance for any help.

Edit: jk guys, it works. Please delete my post.