Add saving for overlays and rotation

This commit is contained in:
GlaZedBelmont 2023-12-15 18:33:47 -05:00
parent 55be56a88c
commit 8ea040532d

View file

@ -637,10 +637,11 @@ function set_aspectratio() {
done
;;
esac
add_setting "positionx" "custom_viewport_x"
add_setting "positiony" "custom_viewport_y"
add_setting "width" "custom_viewport_width"
add_setting "height" "custom_viewport_height"
# add_setting "positionx" "custom_viewport_x"
# add_setting "positiony" "custom_viewport_y"
# add_setting "width" "custom_viewport_width"
# add_setting "height" "custom_viewport_height"
add_setting "rotation" "video_rotation"
}
function set_filtering() {
@ -693,6 +694,21 @@ function set_filter() {
esac
}
function set_overlay() {
local OVERLAY="$(game_setting overlayset)"
case ${OVERLAY} in
0|false|none)
add_setting "none" "input_overlay_enable" "false"
add_setting "none" "input_overlay" ""
;;
*)
local OVERLAY_PATH="/storage/overlays"
add_setting "none" "input_overlay_enable" "true"
add_setting "none" "input_overlay" "${OVERLAY_PATH}/${OVERLAY}"
;;
esac
}
function set_rewind() {
local REWIND="$(game_setting rewind)"
case ${REWIND} in
@ -953,11 +969,8 @@ function set_gambatte() {
echo 'gambatte_gb_palette_twb64_1 = "'${TWB1_COLORIZATION}'"' >> ${GAMBATTECONF}
echo 'gambatte_gb_palette_twb64_2 = "'${TWB2_COLORIZATION}'"' >> ${GAMBATTECONF}
echo 'gambatte_gb_palette_twb64_3 = "'${TWB3_COLORIZATION}'"' >> ${GAMBATTECONF}
<<<<<<< HEAD
echo 'gambatte_gb_palette_pixelshift_1 = "'${PIXELSHIFT1_COLORIZATION}'"' >> ${GAMBATTECONF}
=======
echo 'gambatte_gb_palette_pixelshift_1 = "'${PIXELSHIFT1_COLORIZATION}'"' >> ${GAMBATTECONF}
>>>>>>> refs/remotes/origin/dev
echo 'gambatte_gb_palette_pixelshift_1 = "'${PIXELSHIFT1_COLORIZATION}'"' >> ${GAMBATTECONF}
;;
esac
fi
@ -1021,6 +1034,7 @@ set_integerscale &
set_rgascale &
set_shader &
set_filter &
set_overlay &
set_rewind &
set_savestates &
set_autosave &