(Libretro) Cleanups to check_variables