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
d9d30ddc
Commit
d9d30ddc
authored
Oct 05, 2024
by
Htylol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added comments
parent
89df7561
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
functions_helper
data_from_portwine/scripts/functions_helper
+1
-0
start.sh
data_from_portwine/scripts/start.sh
+7
-2
No files found.
data_from_portwine/scripts/functions_helper
View file @
d9d30ddc
...
...
@@ -1324,6 +1324,7 @@ stop_portwine () {
#PW_TIME_IN_GAME=$(( (PW_TIME_IN_GAME / 60000) % 60 )) # в минутах
PW_TIME_IN_GAME
=
$((
PW_TIME_IN_GAME
/
1000
))
# в секундах
# Поиск нужного .desktop файла по $portwine_exe, чтобы внести изменения в него.
for
desktop_file
in
"
${
PORT_WINE_PATH
}
"
/
*
;
do
if
[[
$desktop_file
=
~ .desktop
]]
;
then
if
[[
!
$desktop_file
=
~
(
/PortProton|/readme
)
]]
;
then
...
...
data_from_portwine/scripts/start.sh
View file @
d9d30ddc
...
...
@@ -607,7 +607,9 @@ else
gui_userconf
fi
debug_timer
--start
debug_timer
--start
# дропнуть и debug_timer --end ниже тоже
# Поиск .desktop файлов
AMOUNT_GENERATE_BUTTONS
=
"0"
for
desktop_file
in
"
${
PORT_WINE_PATH
}
"
/
*
;
do
if
[[
$desktop_file
=
~ .desktop
]]
;
then
...
...
@@ -632,6 +634,7 @@ else
fi
done
# Переопределение массивов в зависимости от PW_GAME_TIME, от большего значения к меньшему.
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
...
...
@@ -653,6 +656,7 @@ else
done
done
# Генерация .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_ALL_DF_ARRAY
[@]
}
"
;
do
...
...
@@ -733,8 +737,9 @@ else
--field
=
"
${
translations
[Regedit]
}
"
!
"
$PW_GUI_ICON_PATH
/
$BUTTON_SIZE_MM
.png"
!
"
${
translations
[Run wine regedit]
}
"
:
"FBTN"
'@bash -c "button_click --normal WINEREG"'
1>
"
${
PW_TMPFS_PATH
}
/tmp_yad_form_vulkan"
2>/dev/null &
if
[[
$AI_SKIP
!=
1
]]
;
then
AI_AMOUNT_GAMES
=
"0"
&&
AI_AMOUNT_EMULS
=
"0"
&&
AI_AMOUNT_ARRAY
=
"0"
# AI_TOP_GAMES используется для сортировки автоинсталлов (работает на эмуляторы тоже)
AI_TOP_GAMES
=
"PW_LGC PW_VKPLAY PW_EPIC PW_BATTLE_NET"
AI_AMOUNT_GAMES
=
"0"
&&
AI_AMOUNT_EMULS
=
"0"
&&
AI_AMOUNT_ARRAY
=
"0"
for
ai_file
in
"
$PORT_SCRIPTS_PATH
"
/pw_autoinstall/
*
;
do
while
IFS
=
read
-r
line
;
do
[[
$line
=
~
"##########"
]]
&&
break
...
...
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