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
0126e2ff
Commit
0126e2ff
authored
Jan 18, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-gamemode-init' of
https://github.com/Boria138/PortWINE
into…
Merge branch 'fix-gamemode-init' of
https://github.com/Boria138/PortWINE
into Boria138-fix-gamemode-init
parents
55760cd8
f114439f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
30 deletions
+18
-30
functions_helper
data_from_portwine/scripts/functions_helper
+1
-6
runlib
data_from_portwine/scripts/runlib
+12
-10
start.sh
data_from_portwine/scripts/start.sh
+5
-14
No files found.
data_from_portwine/scripts/functions_helper
View file @
0126e2ff
...
...
@@ -693,12 +693,7 @@ pw_download_libs () {
export
pw_yad_v12_3
=
"
${
PW_WINELIB
}
/portable/bin/yad_v12_3"
export
pw_zstd
=
"
${
PW_WINELIB
}
/portable/bin/zstd"
export
pw_7z
=
"
${
PW_WINELIB
}
/portable/lib/p7zip/7z"
if
[
-x
"
`
command
-v
xterm 2>/dev/null
`
"
]
;
then
export
SYS_XTERM
=
`
command
-v
xterm
`
export
PW_XTERM
=
"
${
SYS_XTERM
}
-geometry 159x37 -e"
else
export
PW_XTERM
=
"
${
PW_WINELIB
}
/runtime/files/bin/xterm -geometry 159x37 -e"
fi
export
PW_XTERM
=
"
${
PW_WINELIB
}
/runtime/files/bin/xterm -geometry 159x37 -e"
return
0
}
...
...
data_from_portwine/scripts/runlib
View file @
0126e2ff
...
...
@@ -264,10 +264,12 @@ start_portwine () {
killall xneur
export
int_xneur
=
1
fi
if
[[
-x
"
`
command
-v
"gamemoderun"
2>/dev/null
`
"
]]
&&
[[
"
$PW_USE_GAMEMODE
"
=
"1"
]]
;
then
if
[[
"
$PW_USE_GAMEMODE
"
=
"1"
]]
;
then
export
GAMEMODERUN
=
1
PW_GAMEMODERUN_SLR
=
"gamemoderun"
systemctl
enable
--now
--user
gamemoded &>/dev/null
pkill gamemoded
sleep
0.1
"
${
PW_WINELIB
}
/portable/bin/gamemoded"
>
/dev/null 2>&1 &
print_info
"Gamemod will be launched."
else
export
GAMEMODERUN
=
0
...
...
@@ -686,15 +688,15 @@ pw_run () {
echo
"Log WINE:"
>>
"
${
PW_LOG_TO_FILE
}
"
echo
""
print_debug
"Log from RUNTIME and WINE:"
${
PW_GAMEMODERUN_SLR
}
\
${
PW_RUN_GAMESCOPE
}
\
${
pw_runtime
}
\
env
${
PW_MANGOHUD_SLR
}
\
PATH
=
"
${
PATH
}
"
\
env
PATH
=
"
${
PATH
}
"
\
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
\
LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
"
\
VK_LAYER_PATH
=
"
${
PW_VK_LAYER_PATH
}
"
\
VK_INSTANCE_LAYERS
=
${
PW_VK_INSTANCE_LAYERS
}
\
${
PW_GAMEMODERUN_SLR
}
\
${
PW_RUN_GAMESCOPE
}
\
${
PW_MANGOHUD_SLR
}
\
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[@]
}
&>>
"
${
PW_LOG_TO_FILE
}
"
else
if
[[
"
${
PW_USE_TERMINAL
}
"
==
"1"
]]
;
then
...
...
@@ -704,15 +706,15 @@ pw_run () {
echo
""
echo
"Log WINE:"
>
"
${
PW_LOG_TO_FILE
}
"
print_debug
"Log from RUNTIME and WINE:"
${
PW_GAMEMODERUN_SLR
}
\
${
PW_RUN_GAMESCOPE
}
\
${
pw_runtime
}
\
env
${
PW_MANGOHUD_SLR
}
\
PATH
=
"
${
PATH
}
"
\
env
PATH
=
"
${
PATH
}
"
\
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
\
LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
"
\
VK_LAYER_PATH
=
"
${
PW_VK_LAYER_PATH
}
"
\
VK_INSTANCE_LAYERS
=
"
${
PW_VK_INSTANCE_LAYERS
}
"
\
${
PW_GAMEMODERUN_SLR
}
\
${
PW_RUN_GAMESCOPE
}
\
${
PW_MANGOHUD_SLR
}
\
"
${
WINELOADER
}
"
"
$@
"
${
LAUNCH_PARAMETERS
[@]
}
&>>
"
${
PW_LOG_TO_FILE
}
"
cat
"
${
PW_LOG_TO_FILE
}
"
fi
...
...
data_from_portwine/scripts/start.sh
View file @
0126e2ff
...
...
@@ -183,17 +183,6 @@ portwine_start_debug () {
else
echo
"Vulkan cube test completed with error"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
fi
echo
"----------------------------------------------------------------------"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
echo
"GameMode status:"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
if
gamemoded
-s
|
grep
"is active"
;
then
echo
"gamemode is active"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
elif
gamemoded
-s
|
grep
"is inactive"
;
then
echo
"gamemode is inactive"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
else
echo
"gamemode is not found"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
fi
echo
"----------------------------------------------------"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
echo
'locale:'
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
locale
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
...
...
@@ -246,6 +235,7 @@ portwine_start_debug () {
sed
-i
'/HACK_does_openvr_work/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/Uploading is disabled/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/dlopen failed - libgamemode.so/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/gamemodeauto: /d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
sed
-i
'/wine: RLIMIT_NICE is <= 20/d'
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
deb_text
=
$(
cat
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
|
awk
'! a[$0]++'
)
echo
"
$deb_text
"
>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
...
...
@@ -407,13 +397,14 @@ pw_start_cont_xterm () {
unset
PW_SANDBOX_HOME_PATH
# export PW_ADD_TO_ARGS_IN_RUNTIME="--xterm"
pw_init_runtime
${
PW_GAMEMODERUN_SLR
}
${
pw_runtime
}
\
env
${
PW_MANGOHUD_SLR
}
\
PATH
=
"
${
PATH
}
"
\
${
pw_runtime
}
\
env
PATH
=
"
${
PATH
}
"
\
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
\
LD_PRELOAD
=
"
${
PW_LD_PRELOAD
}
"
\
VK_LAYER_PATH
=
"
${
PW_VK_LAYER_PATH
}
"
\
VK_INSTANCE_LAYERS
=
"
${
PW_VK_INSTANCE_LAYERS
}
"
\
${
PW_GAMEMODERUN_SLR
}
\
${
PW_MANGOHUD_SLR
}
\
xterm
}
...
...
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