Update libretro.cpp

added "nospritelimit" core option; refactored the "check_variables" function a bit