(retroarch.c) Some refactors