(RARCH_CONSOLE) Refactor filebrowser code