(retroarch.c) refactors