Commit aa2e6e90 authored by Mikhail Tergoev's avatar Mikhail Tergoev

minor update speedup commit

parent 3506a940
......@@ -4052,8 +4052,8 @@ gui_edit_db () {
unset ADD_CHK_BOX_EDIT_DB
for int_to_boole in ${PW_EDIT_DB_LIST[@]} ; do
if [[ "${!int_to_boole}" == "1" ]]
then export "${int_to_boole}"="TRUE"
else export "${int_to_boole}"="FALSE"
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
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"))
bool_from_yad="0"
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" ]]
then export "${boole_to_int}"="1"
else export "${boole_to_int}"="0"
then export ${boole_to_int}="1"
else export ${boole_to_int}="0"
fi
export bool_from_yad=$(( bool_from_yad + 1 ))
done
......@@ -4585,8 +4585,8 @@ gui_dgvoodoo2 () {
unset ADD_CHK_BOX_DGV2
for int_to_boole in ${PW_DGV2_LIST[@]} ; do
if [[ "${!int_to_boole}" == "1" ]]
then export "${int_to_boole}"="TRUE"
else export "${int_to_boole}"="FALSE"
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
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"))
bool_from_yad=0
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" ]]
then export "${boole_to_int}"="1"
else export "${boole_to_int}"="0"
then export ${boole_to_int}="1"
else export ${boole_to_int}="0"
fi
export bool_from_yad=$(( bool_from_yad + 1 ))
done
......@@ -4756,8 +4756,8 @@ gui_gamescope () {
GS_CB="CB" && GS_CBE="CBE" && GS_NUM="NUM" && GS_NUMN="NUMN"
for int_to_boole in ${PW_GS_LIST[@]} ; do
if [[ "${!int_to_boole}" == "1" ]]
then export "${int_to_boole}"="TRUE"
else export "${int_to_boole}"="FALSE"
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
int_to_boole_non_pw="${int_to_boole//PW_GS/}"
......@@ -4787,8 +4787,8 @@ gui_gamescope () {
PW_GS_ITM_TARGET_NITS="0"
for int_to_boole in ${PW_GS_LIST[@]} ; do
if [[ "${!int_to_boole}" == "1" ]]
then export "${int_to_boole}"="TRUE"
else export "${int_to_boole}"="FALSE"
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
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"))
bool_from_yad="0"
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" ]]
then export "${boole_to_int}"="1"
else export "${boole_to_int}"="0"
then export ${boole_to_int}="1"
else export ${boole_to_int}="0"
fi
export bool_from_yad=$(( bool_from_yad + 1 ))
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment