Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE-old
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
PortWINE-old
Commits
aa2e6e90
Commit
aa2e6e90
authored
Sep 25, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor update speedup commit
parent
3506a940
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
functions_helper
data_from_portwine/scripts/functions_helper
+17
-17
No files found.
data_from_portwine/scripts/functions_helper
View file @
aa2e6e90
...
@@ -4052,8 +4052,8 @@ gui_edit_db () {
...
@@ -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:
...
@@ -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 () {
...
@@ -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 () {
...
@@ -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 () {
...
@@ -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 () {
...
@@ -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.]
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment