nixpkgs/pkgs/tools/graphics/goverlay/find-xdg-data-files.patch

41 lines
1.9 KiB
Diff
Raw Normal View History

2021-05-01 20:24:34 +02:00
diff --git a/overlayunit.pas b/overlayunit.pas
2021-09-14 00:27:59 +02:00
index a56cea7..9a4f547 100644
2021-05-01 20:24:34 +02:00
--- a/overlayunit.pas
+++ b/overlayunit.pas
2021-09-14 00:27:59 +02:00
@@ -4880,7 +4880,7 @@ begin
2021-05-01 20:24:34 +02:00
//Determine Mangohud dependency status
//locate MangoHud and store result in tmp folder
- RunCommand('bash -c ''find /usr/share/vulkan/implicit_layer.d/MangoHud.json >> /tmp/goverlay/dependency_mangohud''', s);
+ RunCommand('bash -c ''find-xdg-data-files vulkan/implicit_layer.d/MangoHud.json >> /tmp/goverlay/dependency_mangohud''', s);
// Assign Text file dependency_mangohud to variable mangohudVAR
AssignFile(mangohudVAR, '/tmp/goverlay/dependency_mangohud');
2021-09-14 00:27:59 +02:00
@@ -4889,7 +4889,7 @@ begin
2021-05-01 20:24:34 +02:00
CloseFile(mangohudVAR);
// Read String and store value on mangohuddependencyVALUE based on result
- if mangohudSTR = '/usr/share/vulkan/implicit_layer.d/MangoHud.json' then
+ if mangohudSTR <> '' then
mangohuddependencyVALUE := 1
else
mangohuddependencyVALUE := 0;
2021-09-14 00:27:59 +02:00
@@ -4898,7 +4898,7 @@ begin
2021-05-01 20:24:34 +02:00
//Determine vkBasalt dependency staus
//locate vkBasalt and store result in tmp folder
- RunCommand('bash -c ''find /usr/share/vulkan/implicit_layer.d/vkBasalt.json >> /tmp/goverlay/dependency_vkbasalt''', s);
+ RunCommand('bash -c ''find-xdg-data-files vulkan/implicit_layer.d/vkBasalt.json >> /tmp/goverlay/dependency_vkbasalt''', s);
// Assign Text file dependency_mangohud to variable mangohudVAR
AssignFile(vkbasaltVAR, '/tmp/goverlay/dependency_vkbasalt');
2021-09-14 00:27:59 +02:00
@@ -4907,7 +4907,7 @@ begin
2021-05-01 20:24:34 +02:00
CloseFile(vkbasaltVAR);
// Read String and store value on vkbasaltdependencyVALUE based on result
- if vkbasaltSTR = '/usr/share/vulkan/implicit_layer.d/vkBasalt.json' then
+ if vkbasaltSTR <> '' then
vkbasaltdependencyVALUE := 1
else
vkbasaltdependencyVALUE := 0;