forked from CastroFidel/PortWINE
minor update speedup commit
This commit is contained in:
parent
3506a94099
commit
aa2e6e905c
@ -4052,8 +4052,8 @@ gui_edit_db () {
|
|||||||
unset ADD_CHK_BOX_EDIT_DB
|
unset ADD_CHK_BOX_EDIT_DB
|
||||||
for int_to_boole in ${PW_EDIT_DB_LIST[@]} ; do
|
for int_to_boole in ${PW_EDIT_DB_LIST[@]} ; do
|
||||||
if [[ "${!int_to_boole}" == "1" ]]
|
if [[ "${!int_to_boole}" == "1" ]]
|
||||||
then export "${int_to_boole}"="TRUE"
|
then export ${int_to_boole}="TRUE"
|
||||||
else export "${int_to_boole}"="FALSE"
|
else export ${int_to_boole}="FALSE"
|
||||||
fi
|
fi
|
||||||
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
|
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
|
||||||
int_to_boole_non_pw="${int_to_boole//PW_/}"
|
int_to_boole_non_pw="${int_to_boole//PW_/}"
|
||||||
@ -4136,10 +4136,10 @@ A brief instruction:
|
|||||||
output_yad_edit_db=($(<"${PW_TMPFS_PATH}/tmp_output_yad_edit_db"))
|
output_yad_edit_db=($(<"${PW_TMPFS_PATH}/tmp_output_yad_edit_db"))
|
||||||
bool_from_yad="0"
|
bool_from_yad="0"
|
||||||
for boole_to_int in ${PW_EDIT_DB_LIST[@]} ; do
|
for boole_to_int in ${PW_EDIT_DB_LIST[@]} ; do
|
||||||
export "${boole_to_int}"="${output_yad_edit_db[$bool_from_yad]}"
|
export ${boole_to_int}="${output_yad_edit_db[$bool_from_yad]}"
|
||||||
if [[ "${!boole_to_int}" == "TRUE" ]]
|
if [[ "${!boole_to_int}" == "TRUE" ]]
|
||||||
then export "${boole_to_int}"="1"
|
then export ${boole_to_int}="1"
|
||||||
else export "${boole_to_int}"="0"
|
else export ${boole_to_int}="0"
|
||||||
fi
|
fi
|
||||||
export bool_from_yad=$(( bool_from_yad + 1 ))
|
export bool_from_yad=$(( bool_from_yad + 1 ))
|
||||||
done
|
done
|
||||||
@ -4585,8 +4585,8 @@ gui_dgvoodoo2 () {
|
|||||||
unset ADD_CHK_BOX_DGV2
|
unset ADD_CHK_BOX_DGV2
|
||||||
for int_to_boole in ${PW_DGV2_LIST[@]} ; do
|
for int_to_boole in ${PW_DGV2_LIST[@]} ; do
|
||||||
if [[ "${!int_to_boole}" == "1" ]]
|
if [[ "${!int_to_boole}" == "1" ]]
|
||||||
then export "${int_to_boole}"="TRUE"
|
then export ${int_to_boole}="TRUE"
|
||||||
else export "${int_to_boole}"="FALSE"
|
else export ${int_to_boole}="FALSE"
|
||||||
fi
|
fi
|
||||||
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
|
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
|
||||||
int_to_boole_non_pw="${int_to_boole//PW_DGV2/}"
|
int_to_boole_non_pw="${int_to_boole//PW_DGV2/}"
|
||||||
@ -4675,10 +4675,10 @@ gui_dgvoodoo2 () {
|
|||||||
output_yad_dgv2=($(<"${PW_TMPFS_PATH}/tmp_yad_dgv2_set"))
|
output_yad_dgv2=($(<"${PW_TMPFS_PATH}/tmp_yad_dgv2_set"))
|
||||||
bool_from_yad=0
|
bool_from_yad=0
|
||||||
for boole_to_int in ${PW_DGV2_LIST[@]} ; do
|
for boole_to_int in ${PW_DGV2_LIST[@]} ; do
|
||||||
export "${boole_to_int}"="${output_yad_dgv2[$bool_from_yad]}"
|
export ${boole_to_int}="${output_yad_dgv2[$bool_from_yad]}"
|
||||||
if [[ "${!boole_to_int}" == "TRUE" ]]
|
if [[ "${!boole_to_int}" == "TRUE" ]]
|
||||||
then export "${boole_to_int}"="1"
|
then export ${boole_to_int}="1"
|
||||||
else export "${boole_to_int}"="0"
|
else export ${boole_to_int}="0"
|
||||||
fi
|
fi
|
||||||
export bool_from_yad=$(( bool_from_yad + 1 ))
|
export bool_from_yad=$(( bool_from_yad + 1 ))
|
||||||
done
|
done
|
||||||
@ -4756,8 +4756,8 @@ gui_gamescope () {
|
|||||||
GS_CB="CB" && GS_CBE="CBE" && GS_NUM="NUM" && GS_NUMN="NUMN"
|
GS_CB="CB" && GS_CBE="CBE" && GS_NUM="NUM" && GS_NUMN="NUMN"
|
||||||
for int_to_boole in ${PW_GS_LIST[@]} ; do
|
for int_to_boole in ${PW_GS_LIST[@]} ; do
|
||||||
if [[ "${!int_to_boole}" == "1" ]]
|
if [[ "${!int_to_boole}" == "1" ]]
|
||||||
then export "${int_to_boole}"="TRUE"
|
then export ${int_to_boole}="TRUE"
|
||||||
else export "${int_to_boole}"="FALSE"
|
else export ${int_to_boole}="FALSE"
|
||||||
fi
|
fi
|
||||||
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
|
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
|
||||||
int_to_boole_non_pw="${int_to_boole//PW_GS/}"
|
int_to_boole_non_pw="${int_to_boole//PW_GS/}"
|
||||||
@ -4787,8 +4787,8 @@ gui_gamescope () {
|
|||||||
PW_GS_ITM_TARGET_NITS="0"
|
PW_GS_ITM_TARGET_NITS="0"
|
||||||
for int_to_boole in ${PW_GS_LIST[@]} ; do
|
for int_to_boole in ${PW_GS_LIST[@]} ; do
|
||||||
if [[ "${!int_to_boole}" == "1" ]]
|
if [[ "${!int_to_boole}" == "1" ]]
|
||||||
then export "${int_to_boole}"="TRUE"
|
then export ${int_to_boole}="TRUE"
|
||||||
else export "${int_to_boole}"="FALSE"
|
else export ${int_to_boole}="FALSE"
|
||||||
fi
|
fi
|
||||||
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
|
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
|
||||||
int_to_boole_non_pw="${int_to_boole//PW_GS/}"
|
int_to_boole_non_pw="${int_to_boole//PW_GS/}"
|
||||||
@ -4861,10 +4861,10 @@ relaxed - Same as fifo but allows tearing when below the monitors refresh rate.]
|
|||||||
output_yad_gs=($(<"${PW_TMPFS_PATH}/tmp_yad_gs_set"))
|
output_yad_gs=($(<"${PW_TMPFS_PATH}/tmp_yad_gs_set"))
|
||||||
bool_from_yad="0"
|
bool_from_yad="0"
|
||||||
for boole_to_int in ${PW_GS_LIST[@]} ; do
|
for boole_to_int in ${PW_GS_LIST[@]} ; do
|
||||||
export "${boole_to_int}"="${output_yad_gs[$bool_from_yad]}"
|
export ${boole_to_int}="${output_yad_gs[$bool_from_yad]}"
|
||||||
if [[ "${!boole_to_int}" == "TRUE" ]]
|
if [[ "${!boole_to_int}" == "TRUE" ]]
|
||||||
then export "${boole_to_int}"="1"
|
then export ${boole_to_int}="1"
|
||||||
else export "${boole_to_int}"="0"
|
else export ${boole_to_int}="0"
|
||||||
fi
|
fi
|
||||||
export bool_from_yad=$(( bool_from_yad + 1 ))
|
export bool_from_yad=$(( bool_from_yad + 1 ))
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user