Merge pull request #1819 from fewtarius/dev
Fix setsettings dpad analog enable.
This commit is contained in:
commit
dbb45d1fc4
1 changed files with 6 additions and 14 deletions
|
@ -127,10 +127,14 @@ declare -a NO_RUNAHEAD=( atomiswave
|
|||
)
|
||||
|
||||
declare -a NO_ANALOG=( dreamcast
|
||||
gc
|
||||
n64
|
||||
nds
|
||||
ps2
|
||||
psp
|
||||
pspminis
|
||||
psx
|
||||
wii
|
||||
wonderswan
|
||||
wonderswancolor
|
||||
)
|
||||
|
@ -277,17 +281,7 @@ function add_setting() {
|
|||
if [ -z "${RETROARCH_VALUE}" ]& \
|
||||
[ ! "${1}" = "none" ]
|
||||
then
|
||||
case ${OS_SETTING} in
|
||||
0|false|none)
|
||||
RETROARCH_VALUE="false"
|
||||
;;
|
||||
1|true)
|
||||
RETROARCH_VALUE="true"
|
||||
;;
|
||||
*)
|
||||
RETROARCH_VALUE="${OS_SETTING}"
|
||||
;;
|
||||
esac
|
||||
RETROARCH_VALUE="${OS_SETTING}"
|
||||
fi
|
||||
clear_setting "${RETROARCH_KEY}"
|
||||
echo "${RETROARCH_KEY} = \"${RETROARCH_VALUE}\"" >>${TMP_CONFIG}
|
||||
|
@ -476,10 +470,8 @@ function set_aspectratio() {
|
|||
*)
|
||||
for AR in ${!CORE_RATIOS[@]}
|
||||
do
|
||||
log "Test [${ASPECT_RATIO}] (${CORE_RATIOS[${AR}]}) (${AR})"
|
||||
if [ "${CORE_RATIOS[${AR}]}" = "${ASPECT_RATIO}" ]
|
||||
then
|
||||
log "Find aspect ratio [${ASPECT_RATIO}] (${CORE_RATIOS[${AR}]})"
|
||||
add_setting "none" "aspect_ratio_index" "${AR}"
|
||||
break
|
||||
fi
|
||||
|
@ -619,7 +611,7 @@ function set_audiolatency() {
|
|||
function set_analogsupport() {
|
||||
local HAS_ANALOG="$(match ${PLATFORM} ${NO_ANALOG[@]})"
|
||||
case ${HAS_ANALOG} in
|
||||
0|false|none)
|
||||
1)
|
||||
add_setting "none" "input_player1_analog_dpad_mode" "0"
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue