Fix setsettings bug

This commit is contained in:
fewtarius 2023-07-20 00:56:51 +00:00
parent 7fcadda38e
commit 4c05b2331e
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -338,7 +338,7 @@ function set_fps() {
function set_cheevos() {
local USE_CHEEVOS=$(game_setting "retroachievements")
local CHECK_CHEEVOS="$(match "${PLATFORM}" "${HAS_CHEEVOS[@]}")"
if [ "${USE_CHEEVOS}" = 1 ]& \
if [ "${USE_CHEEVOS}" = 1 ] && \
[ "${CHECK_CHEEVOS}" = 1 ]
then
add_setting "none" "cheevos_enable" "true"