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
34eaa03b
Commit
34eaa03b
authored
May 09, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix preview
parent
642ddf2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
functions_helper
data_from_portwine/scripts/functions_helper
+9
-4
No files found.
data_from_portwine/scripts/functions_helper
View file @
34eaa03b
...
...
@@ -3438,7 +3438,9 @@ gui_MangoHud () {
PW_MH_frametime_INFO
=
$(
eval_gettext
'Display frametime next to FPS text'
)
PW_MH_wine_INFO
=
$(
eval_gettext
'Show current Wine or Proton version in use'
)
unset
ADD_GUI_MH GUI_MH_RESULT ADD_GUI_MH_FPS GUI_MH_FPS_RESULT
unset
ADD_GUI_MH GUI_MH_RESULT ADD_GUI_MH_FPS GUI_MH_FPS_RESULT PW_FPS_LIMIT_VAR PW_MANGOHUD_CONFIG
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_yad_mh_set"
try_remove_file
"
${
PORT_WINE_TMP_PATH
}
/tmp_yad_mh_fps_limit"
GET_REFRESH_RATE
=(
30 40 45 48 60 75 90 120 144 165 175 240
)
...
...
@@ -3543,7 +3545,7 @@ gui_MangoHud () {
else
GUI_MH_RESULT
=
"
${
GUI_MH_RESULT
%,
}
"
fi
if
[[
!
-z
"
$FPS_LIMIT
"
]]
;
then
if
[[
!
-z
"
$FPS_LIMIT
"
]]
;
then
GUI_MH_RESULT
=
"
${
GUI_MH_RESULT
}
,fps_limit=
$FPS_LIMIT
"
elif
[[
"
$FPS_LIMIT
"
==
"disabled"
]]
;
then
GUI_MH_RESULT
=
"
${
GUI_MH_RESULT
}
,fps_limit=0"
...
...
@@ -3555,12 +3557,15 @@ gui_MangoHud () {
fi
export
MANGOHUD_CONFIG
=
"
${
GUI_MH_RESULT
}
"
export
PW_MANGOHUD FPS_LIMIT
edit_db_from_gui MANGOHUD_CONFIG PW_MANGOHUD FPS_LIMIT
if
[[
"
${
YAD_MANGOHUD_STATUS
}
"
==
"184"
]]
then
env
MANGOHUD
=
1
MANGOHUD_CONFIG
=
"
${
GUI_MH_RESULT
}
"
"
${
PW_PLUGINS_PATH
}
/portable/bin/vkcube"
then
env
MANGOHUD
=
1
MANGOHUD_CONFIG
=
"
${
GUI_MH_RESULT
}
"
"
${
PW_PLUGINS_PATH
}
/portable/bin/vkcube"
gui_MangoHud
fi
edit_db_from_gui MANGOHUD_CONFIG PW_MANGOHUD FPS_LIMIT
export
SKIP_CHECK_UPDATES
=
1
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
exit
0
...
...
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