I think the only way is to have something like: CEA for emulationstation and DMT for retroarch. I can't figure out any other way :/