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
1b3831f0
Commit
1b3831f0
authored
Oct 12, 2023
by
Boria138
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Nobara support
parent
a6b83f41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
zen_yad_gui
data_from_portwine/scripts/zen_yad_gui
+18
-9
No files found.
data_from_portwine/scripts/zen_yad_gui
View file @
1b3831f0
...
@@ -233,7 +233,7 @@ pw_gui_for_edit_db () {
...
@@ -233,7 +233,7 @@ pw_gui_for_edit_db () {
WINEDLLOVERRIDES
=
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $3}'
`
WINEDLLOVERRIDES
=
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $3}'
`
LAUNCH_PARAMETERS
=
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $5}'
`
LAUNCH_PARAMETERS
=
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $5}'
`
CPU_LIMIT
=
"
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $7}'
`
"
CPU_LIMIT
=
"
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $7}'
`
"
AMD_VUKAN
=
"
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $8}'
`
"
AMD_VU
L
KAN
=
"
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $8}'
`
"
FPS_LIMIT
=
"
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $9}'
`
"
FPS_LIMIT
=
"
`
cat
"
${
PORT_WINE_TMP_PATH
}
/tmp_output_yad_fps_limit"
|
awk
-F
"%"
'{print $9}'
`
"
if
[[
"
${
FPS_LIMIT
}
"
!=
"disabled"
]]
&&
[[
"
${
FPS_LIMIT_VAR
}
"
!=
"disabled"
]]
;
then
if
[[
"
${
FPS_LIMIT
}
"
!=
"disabled"
]]
&&
[[
"
${
FPS_LIMIT_VAR
}
"
!=
"disabled"
]]
;
then
...
@@ -250,21 +250,30 @@ pw_gui_for_edit_db () {
...
@@ -250,21 +250,30 @@ pw_gui_for_edit_db () {
else
else
export
PW_WINE_CPU_TOPOLOGY
=
"disabled"
export
PW_WINE_CPU_TOPOLOGY
=
"disabled"
fi
fi
if
[[
"
${
AMD_VUKAN
}
"
==
"amdvlk"
]]
;
then
if
[[
"
${
AMD_VU
L
KAN
}
"
==
"amdvlk"
]]
;
then
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
VK_ICD_FILENAMES
=
"/usr/share/vulkan/icd.d/amd_icd32.json:/usr/share/vulkan/icd.d/amd_icd64.json"
if
[[
$(
cat
/etc/os-release |
grep
-oP
'PRETTY_NAME="\K[^"]+'
)
==
"Nobara"
]]
;
then
elif
[[
"
${
AMD_VUKAN
}
"
==
"amdgpupro"
]]
;
then
export
VK_ICD_FILENAMES
=
"/opt/amdgpu/etc/vulkan/icd.d/amd_icd32.json:/opt/amdgpu/etc/vulkan/icd.d/amd_icd64.json"
else
export
VK_ICD_FILENAMES
=
"/usr/share/vulkan/icd.d/amd_icd32.json:/usr/share/vulkan/icd.d/amd_icd64.json"
fi
elif
[[
"
${
AMD_VULKAN
}
"
==
"amdgpupro"
]]
;
then
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
VK_ICD_FILENAMES
=
"/usr/share/vulkan/icd.d/amd_pro_icd32.json:/usr/share/vulkan/icd.d/amd_pro_icd64.json"
if
[[
$(
cat
/etc/os-release |
grep
-oP
'PRETTY_NAME="\K[^"]+'
)
==
"Nobara"
]]
;
then
elif
[[
"
${
AMD_VUKAN
}
"
==
"radv"
]]
;
then
export
VK_ICD_FILENAMES
=
"/opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd32.json:/opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd64.json"
export
LD_LIBRARY_PATH
=
"/opt/amdgpu/libdrm/lib64:/opt/amdgpu/libdrm/lib32:
$LD_LIBRARY_PATH
"
else
export
VK_ICD_FILENAMES
=
"/usr/share/vulkan/icd.d/amd_pro_icd32.json:/usr/share/vulkan/icd.d/amd_pro_icd64.json"
fi
elif
[[
"
${
AMD_VULKAN
}
"
==
"radv"
]]
;
then
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
VK_ICD_FILENAMES
=
"/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json"
export
VK_ICD_FILENAMES
=
"/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json"
elif
[[
"
${
AMD_VUKAN
}
"
==
"radv_aco"
]]
;
then
elif
[[
"
${
AMD_VU
L
KAN
}
"
==
"radv_aco"
]]
;
then
unset
RADV_PERFTEST
unset
RADV_PERFTEST
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
RADV_PERFTEST
=
aco
export
RADV_PERFTEST
=
aco
export
VK_ICD_FILENAMES
=
"/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json"
export
VK_ICD_FILENAMES
=
"/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json"
elif
[[
"
${
AMD_VUKAN
}
"
==
"radv_gpl"
]]
;
then
elif
[[
"
${
AMD_VU
L
KAN
}
"
==
"radv_gpl"
]]
;
then
unset
RADV_PERFTEST
unset
RADV_PERFTEST
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1
=
1
export
RADV_PERFTEST
=
gpl
export
RADV_PERFTEST
=
gpl
...
@@ -273,7 +282,7 @@ pw_gui_for_edit_db () {
...
@@ -273,7 +282,7 @@ pw_gui_for_edit_db () {
# Debug echo (nedded delete)
# Debug echo (nedded delete)
echo
$VK_ICD_FILENAMES
echo
$VK_ICD_FILENAMES
echo
$RADV_PERFTEST
echo
$RADV_PERFTEST
echo
$AMD_VUKAN
echo
$AMD_VU
L
KAN
echo
"pw_gui_for_edit_db PORTWINE_DB_FILE=
$PORTWINE_DB_FILE
"
echo
"pw_gui_for_edit_db PORTWINE_DB_FILE=
$PORTWINE_DB_FILE
"
edit_db_from_gui
$@
MANGOHUD_CONFIG LAUNCH_PARAMETERS PW_WINDOWS_VER PW_DLL_INSTALL WINEDLLOVERRIDES PW_WINE_CPU_TOPOLOGY
edit_db_from_gui
$@
MANGOHUD_CONFIG LAUNCH_PARAMETERS PW_WINDOWS_VER PW_DLL_INSTALL WINEDLLOVERRIDES PW_WINE_CPU_TOPOLOGY
return
0
return
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