Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
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
Mikhail Tergoev
PortWINE
Commits
e6c94c96
Commit
e6c94c96
authored
Oct 06, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spellcheck fixes
parent
91a220ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
start.sh
data_from_portwine/scripts/start.sh
+11
-10
No files found.
data_from_portwine/scripts/start.sh
View file @
e6c94c96
...
...
@@ -637,28 +637,29 @@ else
done
# Переопределение массивов в зависимости от PW_GAME_TIME, от большего значения к меньшему.
# 10 миллисекунд на 40 .desktop файлов, работает быстро
for
i
in
"
${
!PW_GAME_TIME[@]
}
"
;
do
for
j
in
"
${
!PW_GAME_TIME[@]
}
"
;
do
if
[[
${
PW_GAME_TIME
[
$i
]
}
-gt
${
PW_GAME_TIME
[
$j
]
}
]]
;
then
if
((
${
PW_GAME_TIME
[
$i
]
}
>
${
PW_GAME_TIME
[
$j
]
}
))
;
then
tmp_0
=
${
PW_GAME_TIME
[
$i
]
}
tmp_1
=
${
PW_ALL_DF
[
$i
]
}
tmp_2
=
${
PW_NAME_D_ICON
[
$i
]
}
tmp_4
=
${
PW_ICON_PATH
[
$i
]
}
PW_GAME_TIME[
$
i
]=
${
PW_GAME_TIME
[
$j
]
}
PW_ALL_DF[
$
i
]=
${
PW_ALL_DF
[
$j
]
}
PW_NAME_D_ICON[
$
i
]=
${
PW_NAME_D_ICON
[
$j
]
}
PW_ICON_PATH[
$
i
]=
${
PW_ICON_PATH
[
$j
]
}
PW_GAME_TIME[i]
=
${
PW_GAME_TIME
[
$j
]
}
PW_ALL_DF[i]
=
${
PW_ALL_DF
[
$j
]
}
PW_NAME_D_ICON[i]
=
${
PW_NAME_D_ICON
[
$j
]
}
PW_ICON_PATH[i]
=
${
PW_ICON_PATH
[
$j
]
}
PW_GAME_TIME[
$
j
]=
$tmp_0
PW_ALL_DF[
$
j
]=
$tmp_1
PW_NAME_D_ICON[
$
j
]=
$tmp_2
PW_ICON_PATH[
$
j
]=
$tmp_4
PW_GAME_TIME[j]
=
$tmp_0
PW_ALL_DF[j]
=
$tmp_1
PW_NAME_D_ICON[j]
=
$tmp_2
PW_ICON_PATH[j]
=
$tmp_4
fi
done
done
# Генерация .desktop баттанов для меню
# Генерация .desktop баттанов для
главного
меню
IFS
=
$'
\n
'
PW_GENERATE_BUTTONS
=
"--field=
${
translations
[Create shortcut...]
}
!
${
PW_GUI_ICON_PATH
}
/find_48.svg!:FBTNR%@bash -c
\"
button_click --normal pw_find_exe
\"
%"
for
dp
in
"
${
PW_AMOUNT_NO_TIME
[@]
}
"
"
${
PW_AMOUNT_WITH_TIME
[@]
}
"
;
do
...
...
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