(RARCH_CONSOLE) Refactor libretro_install_core